diff options
author | martti <martti@pkgsrc.org> | 2006-12-15 13:15:06 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2006-12-15 13:15:06 +0000 |
commit | e2610fb8c820eb8b980e4903b6e8df8adafee4b0 (patch) | |
tree | 03ade063a5c9c888a51d974e8f2cdd77bc3b2d67 /mk/scripts | |
parent | f71b87f6f8e4f627b299770626c1e3a9267f855d (diff) | |
download | pkgsrc-e2610fb8c820eb8b980e4903b6e8df8adafee4b0.tar.gz |
Remove trailing tabs.
Diffstat (limited to 'mk/scripts')
-rwxr-xr-x | mk/scripts/binpkg-cache | 6 | ||||
-rwxr-xr-x | mk/scripts/binpkg-scan | 4 | ||||
-rwxr-xr-x | mk/scripts/genindex.awk | 32 | ||||
-rwxr-xr-x | mk/scripts/genreadme.awk | 38 | ||||
-rwxr-xr-x | mk/scripts/mkreadme | 4 |
5 files changed, 42 insertions, 42 deletions
diff --git a/mk/scripts/binpkg-cache b/mk/scripts/binpkg-cache index 07951797b2f..86d65af83d7 100755 --- a/mk/scripts/binpkg-cache +++ b/mk/scripts/binpkg-cache @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: binpkg-cache,v 1.14 2006/12/15 12:46:24 martti Exp $ +# $NetBSD: binpkg-cache,v 1.15 2006/12/15 13:15:06 martti Exp $ # # Script for generating a cache file with information about # all binary packages contained in a directory. @@ -257,7 +257,7 @@ process_binpkg_dir(){ echo "********** WARNING **********" return fi - + if test "${build_summary}" = "yes" ; then cat ${tmpd}/${summaryfile} | ${GZIP_CMD} > ${d}/${summaryfile}.gz if test $? -ne 0 ; then @@ -433,7 +433,7 @@ for d in `${AWK} '{print $1}' ${all_dirs}` ; do echo "${prompt}no binary packages in ${d}" fi fi - + done process_cache_files diff --git a/mk/scripts/binpkg-scan b/mk/scripts/binpkg-scan index db8c0a31b10..c80d8714543 100755 --- a/mk/scripts/binpkg-scan +++ b/mk/scripts/binpkg-scan @@ -1,5 +1,5 @@ #!/usr/bin/awk -f -# $NetBSD: binpkg-scan,v 1.2 2006/12/15 12:46:24 martti Exp $: genreadme.awk,v 1.22 2006/04/15 15:00:24 salo Exp $ +# $NetBSD: binpkg-scan,v 1.3 2006/12/15 13:15:06 martti Exp $: genreadme.awk,v 1.22 2006/04/15 15:00:24 salo Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -76,7 +76,7 @@ END { printf("**** ------- ****\n") > "/dev/stderr"; exit(1); } - + if (rc == 2) { printf("\n**** WARNING ****\n") > "/dev/stderr"; printf("* No binary packages directory found\n") > "/dev/stderr"; diff --git a/mk/scripts/genindex.awk b/mk/scripts/genindex.awk index 13f822a1943..f13a94d1ce8 100755 --- a/mk/scripts/genindex.awk +++ b/mk/scripts/genindex.awk @@ -1,5 +1,5 @@ #!/usr/bin/awk -f -# $NetBSD: genindex.awk,v 1.5 2006/12/15 12:46:24 martti Exp $ +# $NetBSD: genindex.awk,v 1.6 2006/12/15 13:15:06 martti Exp $ # # Copyright (c) 2002, 2003 The NetBSD Foundation, Inc. # All rights reserved. @@ -76,7 +76,7 @@ BEGIN { else {topdepends[pkg] = "";} if (pkg in topbuilddepends) {} else {topbuilddepends[pkg] = "";} - + for (i = 3; i <= NF; i++) { split($i, a,":"); pkgpat = a[1]; @@ -96,14 +96,14 @@ BEGIN { printf("\tpkgpat = %s\n", pkgpat); printf("\tpkgdir = %s\n", pkgdir); } - - + + # # store the package directory in a associative array with the wildcard # pattern as the index since we will need to be able to look this up later # pat2dir[pkgpat] = pkgdir; - + if (deptype == "depends") { topdepends[pkg] = topdepends[pkg] " " pkgpat " " ; if (debug) { @@ -119,7 +119,7 @@ BEGIN { topbuilddepends[pkg] = topbuilddepends[pkg] " " pkgpat " " ; } } - + next; } @@ -208,7 +208,7 @@ END { indexf = SORT " > INDEX"; if ( dependsfile == "" ) dependsfile = "/dev/null"; if ( builddependsfile == "" ) builddependsfile = "/dev/null"; - + printf("Flattening dependencies\n"); printf("") > dependsfile; for (toppkg in topdepends){ @@ -222,13 +222,13 @@ END { flatdepends[toppkg] = alldepends[toppkg]; } close(dependsfile); - - + + # clear out the flattened depends list and repeat for the build depends for( pkg in alldepends) { delete alldepends[pkg]; } - + printf("Flattening build dependencies\n"); printf("") > builddependsfile; for (toppkg in topbuilddepends){ @@ -237,14 +237,14 @@ END { toppkg, alldepends[toppkg]) >> builddependsfile; } close(builddependsfile); - + printf("Generating INDEX file\n"); - + # Output format: # package-name|package-path|installation-prefix|comment| \ # description-file|maintainer|categories|build deps|run deps|for arch| \ # not for opsys|homepage - + pkgcnt = 0; for (toppkg in topdepends){ pkgcnt++; @@ -327,16 +327,16 @@ function find_all_depends(pkg, type, pkgreg, i, deps, depdir, topdep){ if (debug) printf("\t%s is already listed in %s\n", deps[i], alldepends[pkg]); } - + i = i + 1; } # while i - + if (debug) printf("\tcalling uniq() on alldepends[%s] = %s\n", pkg, alldepends[pkg]); alldepends[pkg] = uniq(alldepends[pkg]); if (debug) printf("\tuniq() output alldepends[%s] = %s\n", pkg, alldepends[pkg]); - return(alldepends[pkg]); + return(alldepends[pkg]); } # diff --git a/mk/scripts/genreadme.awk b/mk/scripts/genreadme.awk index bb1fa43f960..fc34671208c 100755 --- a/mk/scripts/genreadme.awk +++ b/mk/scripts/genreadme.awk @@ -1,5 +1,5 @@ #!/usr/bin/awk -f -# $NetBSD: genreadme.awk,v 1.24 2006/12/15 12:46:24 martti Exp $ +# $NetBSD: genreadme.awk,v 1.25 2006/12/15 13:15:06 martti Exp $ # # Copyright (c) 2002, 2003, 2005, 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -81,7 +81,7 @@ BEGIN { else {topdepends[pkg] = "";} if (pkg in topbuilddepends) {} else {topbuilddepends[pkg] = "";} - + for (i = 3; i <= NF; i++) { split($i, a,":"); pkgpat = a[1]; @@ -101,14 +101,14 @@ BEGIN { printf("\tpkgpat = %s\n", pkgpat); printf("\tpkgdir = %s\n", pkgdir); } - - + + # # store the package directory in a associative array with the wildcard # pattern as the index since we will need to be able to look this up later # pat2dir[pkgpat] = pkgdir; - + if (deptype == "depends") { topdepends[pkg] = topdepends[pkg] " " pkgpat " " ; if (debug) { @@ -124,7 +124,7 @@ BEGIN { topbuilddepends[pkg] = topbuilddepends[pkg] " " pkgpat " " ; } } - + next; } @@ -212,7 +212,7 @@ END { printf("**** ------- ****\n") > "/dev/stderr"; exit(1); } - + if (rc == 2) { printf("\n**** WARNING ****\n") > "/dev/stderr"; printf("* No binary packages directory found\n") > "/dev/stderr"; @@ -240,7 +240,7 @@ END { flatdepends[toppkg] = alldepends[toppkg]; } close(dependsfile); - + # clear out the flattened depends list and repeat for the build depends for( key in alldepends ) { @@ -254,9 +254,9 @@ END { toppkg, alldepends[toppkg]) >> builddependsfile; } close(builddependsfile); - + vfile = DISTDIR "/pkg-vulnerabilities"; - + # extract date for vulnerabilities file cmd = "ls -l " vfile; if ((cmd | getline) > 0) { @@ -306,7 +306,7 @@ END { } topdepends[SINGLEPKG] = "yes"; } - + printf("Generating README.html files\n"); pkgcnt = 0; if (do_pkg_readme) { @@ -316,7 +316,7 @@ END { pkgcnt++; pkgdir = PKGSRCDIR "/" toppkg; readmenew=pkgdir "/" readme_name; - + if (debug) printf("Creating %s for %s\n", readme, readmenew); printf("."); @@ -365,7 +365,7 @@ END { close(htmldeps_file); if (debug) printf("wrote = %d entries to \"%s\"\n", i-1, htmldeps_file); - + vul = ""; if (have_vfile) { i = 1; @@ -396,7 +396,7 @@ END { vul="<I>(no vulnerabilities known)</I>"; } } - + if (debug) { printf("Checking for binary package with lookup_cache( %s)\n", @@ -404,7 +404,7 @@ END { } # lookup_cache( wildcard ) will produce HTML for the packages which are found lookup_cache( toppkg ); - + if ( flatdepends[toppkg] ~ /^[ \t]*$/ ) { @@ -412,7 +412,7 @@ END { } else { rundeps = flatdepends[toppkg]; } - + while((getline < templatefile) > 0){ gsub(/%%PORT%%/, toppkg); gsub(/%%PKG%%/, pkgdir2name[toppkg]); @@ -686,16 +686,16 @@ function find_all_depends(pkg, type, pkgreg, i, deps, depdir, topdep){ if (debug) printf("\t%s is already listed in %s\n", deps[i], alldepends[pkg]); } - + i = i + 1; } # while i - + if (debug) printf("\tcalling uniq() on alldepends[%s] = %s\n", pkg, alldepends[pkg]); alldepends[pkg] = uniq(alldepends[pkg]); if (debug) printf("\tuniq() output alldepends[%s] = %s\n", pkg, alldepends[pkg]); - return(alldepends[pkg]); + return(alldepends[pkg]); } # diff --git a/mk/scripts/mkreadme b/mk/scripts/mkreadme index e6381abad11..bac2bf6803e 100755 --- a/mk/scripts/mkreadme +++ b/mk/scripts/mkreadme @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: mkreadme,v 1.12 2006/12/15 12:46:24 martti Exp $ +# $NetBSD: mkreadme,v 1.13 2006/12/15 13:15:07 martti Exp $ # # Script for README.html generation # @@ -162,7 +162,7 @@ do shift ;; - + # Help -h|--help) usage |