summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authormartti <martti>2006-12-15 12:46:23 +0000
committermartti <martti>2006-12-15 12:46:23 +0000
commitf800f4a97ec4a0cfe2daf6d06a25d71da0b92317 (patch)
tree2c399d6a95c0986990ab6070ded1717566864e9e /mk/scripts
parent769a053cda9ef0438c9c30fcada81a95be5d677d (diff)
downloadpkgsrc-f800f4a97ec4a0cfe2daf6d06a25d71da0b92317.tar.gz
Remove trailing spaces.
Diffstat (limited to 'mk/scripts')
-rwxr-xr-xmk/scripts/binpkg-cache12
-rwxr-xr-xmk/scripts/binpkg-scan4
-rwxr-xr-xmk/scripts/chkdatabase.awk14
-rwxr-xr-xmk/scripts/genindex.awk12
-rwxr-xr-xmk/scripts/genreadme.awk20
-rwxr-xr-xmk/scripts/mkreadme8
6 files changed, 35 insertions, 35 deletions
diff --git a/mk/scripts/binpkg-cache b/mk/scripts/binpkg-cache
index c20ea5ffeec..07951797b2f 100755
--- a/mk/scripts/binpkg-cache
+++ b/mk/scripts/binpkg-cache
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: binpkg-cache,v 1.13 2006/07/28 20:52:35 dmcmahill Exp $
+# $NetBSD: binpkg-cache,v 1.14 2006/12/15 12:46:24 martti Exp $
#
# Script for generating a cache file with information about
# all binary packages contained in a directory.
@@ -209,7 +209,7 @@ process_binpkg_dir(){
fi
fi
- if test "${build_summary}" = "yes" -a ! -f ${d}/${summaryfile}.gz ; then
+ if test "${build_summary}" = "yes" -a ! -f ${d}/${summaryfile}.gz ; then
echo "${tab}Summary file ${d}/${summaryfile}.gz is missing and will be created."
need_update=yes
fi
@@ -219,10 +219,10 @@ process_binpkg_dir(){
fi
# FIX_ME
- # We should use stale_entries in a way where we only update the
+ # We should use stale_entries in a way where we only update the
# cache file entries corresponding to these if we're rebuilding
# due to stale entries. That should save a good bit of time.
- #
+ #
if test "X${need_update}" = "Xyes" ; then
echo "pkgcache_version ${cacheversion}" > ${tmpd}/${cachefile}
rm -f ${tmpd}/${summaryfile}
@@ -373,7 +373,7 @@ do
clean_and_exit1
;;
- *)
+ *)
break
;;
@@ -391,7 +391,7 @@ if test ! -d ${PACKAGES} ; then
clean_and_exit2
fi
-# put a trailing / after ${PACKAGES} in case ${PACKAGES} is
+# put a trailing / after ${PACKAGES} in case ${PACKAGES} is
# a link.
# pass 1, we find all directories under PACKAGES. Note that this
diff --git a/mk/scripts/binpkg-scan b/mk/scripts/binpkg-scan
index 8cbd18c0e00..db8c0a31b10 100755
--- a/mk/scripts/binpkg-scan
+++ b/mk/scripts/binpkg-scan
@@ -1,5 +1,5 @@
#!/usr/bin/awk -f
-# $NetBSD: binpkg-scan,v 1.1 2006/07/01 11:11:21 dmcmahill Exp $: genreadme.awk,v 1.22 2006/04/15 15:00:24 salo Exp $
+# $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 $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -47,7 +47,7 @@
# Global variables
#-----------------
-#
+#
# notify - if set to 1, something will be set in the output script to make it
# easy to detect and an automatic email can be sent to notify a person
# that some cleanup is required.
diff --git a/mk/scripts/chkdatabase.awk b/mk/scripts/chkdatabase.awk
index c751f9201bc..18be58c3f3d 100755
--- a/mk/scripts/chkdatabase.awk
+++ b/mk/scripts/chkdatabase.awk
@@ -1,6 +1,6 @@
#!/usr/bin/awk -f
#
-# $NetBSD: chkdatabase.awk,v 1.2 2003/05/06 17:42:04 jmmv Exp $
+# $NetBSD: chkdatabase.awk,v 1.3 2006/12/15 12:46:24 martti Exp $
#
# Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -60,10 +60,10 @@ BEGIN {
#build_depends /usr/pkgsrc/math/scilab libtool-base>=1.4.20010614nb9:../../devel/libtool-base
#
pkg = $2;
-
+
# mark this package as having its depencencies listed
depended_pkgs[pkg] = 1;
-
+
# now go through the dependency lists and pull out all pkg directories that
# we will need to examine to ensure they have been depended.
for(i=3; i<=NF; i++) {
@@ -82,10 +82,10 @@ BEGIN {
printf("\tpkgpat = %s\n",pkgpat) > "/dev/stderr";
printf("\tpkgdir = %s\n",pkgdir) > "/dev/stderr";
}
-
+
# mark this package directory as being one which is depended upon
depended_on_pkgs[pkgdir] = 1;
-
+
}
next;
}
@@ -103,13 +103,13 @@ END {
i++;
}
}
-
+
i=0;
while(i in not_depended) {
printf("%s\n",not_depended[i]);
i++;
}
close("/dev/stderr");
-
+
exit(0);
}
diff --git a/mk/scripts/genindex.awk b/mk/scripts/genindex.awk
index 0e109955939..13f822a1943 100755
--- a/mk/scripts/genindex.awk
+++ b/mk/scripts/genindex.awk
@@ -1,5 +1,5 @@
#!/usr/bin/awk -f
-# $NetBSD: genindex.awk,v 1.4 2003/09/02 07:00:08 jlam Exp $
+# $NetBSD: genindex.awk,v 1.5 2006/12/15 12:46:24 martti Exp $
#
# Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -48,7 +48,7 @@
#
# alldepends[] : index=pkgdir (math/scilab)
# Flattened dependency list by name.
-#
+#
#
@@ -240,7 +240,7 @@ END {
printf("Generating INDEX file\n");
-# Output format:
+# Output format:
# package-name|package-path|installation-prefix|comment| \
# description-file|maintainer|categories|build deps|run deps|for arch| \
# not for opsys|homepage
@@ -298,7 +298,7 @@ function find_all_depends(pkg, type, pkgreg, i, deps, depdir, topdep){
pkg, topdep, alldepends[pkg]);
return(alldepends[pkg]);
}
-
+
# recursively gather depends that each of the depends has
pkgreg = reg2str(pkg);
split(topdep, deps);
@@ -368,10 +368,10 @@ function fulldir2pkgdir(d, i){
# take the depends lists and uniq them.
#
function uniq(list, deps, i, ulist){
-
+
# split out the depends
split(list, deps);
-
+
i = 1;
ulist = " ";
while (i in deps){
diff --git a/mk/scripts/genreadme.awk b/mk/scripts/genreadme.awk
index edf21c58adb..bb1fa43f960 100755
--- a/mk/scripts/genreadme.awk
+++ b/mk/scripts/genreadme.awk
@@ -1,5 +1,5 @@
#!/usr/bin/awk -f
-# $NetBSD: genreadme.awk,v 1.23 2006/07/28 02:41:07 dmcmahill Exp $
+# $NetBSD: genreadme.awk,v 1.24 2006/12/15 12:46:24 martti Exp $
#
# Copyright (c) 2002, 2003, 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -48,7 +48,7 @@
#
# alldepends[] : index=pkgdir (math/scilab)
# Flattened dependency list by name.
-#
+#
BEGIN {
do_pkg_readme=1;
# set to 1 to use "README-new.html" as the name
@@ -349,9 +349,9 @@ END {
# pat2dir[dpkgs[i]],
# readme_name, nm);
# We use a temp file to hold the html dependencies because for
-# packages like gnome, this list can get very very large and
+# packages like gnome, this list can get very very large and
# become larger than what some awk implementations can deal
-# with. The nawk shipped with solaris 9 is an example of
+# with. The nawk shipped with solaris 9 is an example of
# such a limited awk.
printf("%s<a href=\"../../%s/%s\">%s</a>\n",
htmldeps,
@@ -519,9 +519,9 @@ END {
# pkgdir2name[dir],
# comment[dir]);
# We use a temp file to hold the list of all packages because
-# this list can get very very large and
+# this list can get very very large and
# become larger than what some awk implementations can deal
-# with. The nawk shipped with solaris 9 is an example of
+# with. The nawk shipped with solaris 9 is an example of
# such a limited awk.
printf("<TR><TD VALIGN=TOP><a href=\"%s/%s\">%s</a>: %s<TD>\n",
pkg, readme_name,
@@ -566,7 +566,7 @@ END {
close(readme);
close(templatefile);
copy_readme(readmenew, readme);
-
+
gsub(/href=\"/, "href=\""category"/", pkgs);
allcat = sprintf("%s<TR><TD VALIGN=TOP><a href=\"%s/%s\">%s</a>: %s<TD>\n",
allcat, category, readme_name,
@@ -657,7 +657,7 @@ function find_all_depends(pkg, type, pkgreg, i, deps, depdir, topdep){
pkg, topdep, alldepends[pkg]);
return(alldepends[pkg]);
}
-
+
# recursively gather depends that each of the depends has
pkgreg = reg2str(pkg);
split(topdep, deps);
@@ -746,10 +746,10 @@ function fulldir2pkgdir(d, i){
# take the depends lists and uniq them.
#
function uniq(list, deps, i, ulist){
-
+
# split out the depends
split(list, deps);
-
+
i = 1;
ulist = " ";
while (i in deps){
diff --git a/mk/scripts/mkreadme b/mk/scripts/mkreadme
index 92fffa77eae..e6381abad11 100755
--- a/mk/scripts/mkreadme
+++ b/mk/scripts/mkreadme
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mkreadme,v 1.11 2006/07/28 02:41:07 dmcmahill Exp $
+# $NetBSD: mkreadme,v 1.12 2006/12/15 12:46:24 martti Exp $
#
# Script for README.html generation
#
@@ -210,7 +210,7 @@ do
clean_and_exit
;;
- *)
+ *)
break
;;
@@ -259,7 +259,7 @@ echo " "
if [ -d ${PKGSRCDIR}/pkgtools/prereq-readme ]; then
cd ${PKGSRCDIR}/pkgtools/prereq-readme
eval "`${BMAKE} show-tools`"
- for v in AWK CMP ECHO EXPR FGREP FIND GREP GZIP_CMD SED SETENV SORT
+ for v in AWK CMP ECHO EXPR FGREP FIND GREP GZIP_CMD SED SETENV SORT
do
eval "echo '---->' ${v}=\"\${${v}}\""
done
@@ -274,7 +274,7 @@ echo " "
if [ -d ${PKGSRCDIR}/pkgtools/prereq-readme ]; then
cd ${PKGSRCDIR}/pkgtools/prereq-readme
for v in CDROM_PKG_URL_HOST CDROM_PKG_URL_DIR DISTDIR \
- FTP_PKG_URL_HOST FTP_PKG_URL_DIR PACKAGES PKG_INFO PKG_SUFX
+ FTP_PKG_URL_HOST FTP_PKG_URL_DIR PACKAGES PKG_INFO PKG_SUFX
do
val=`${BMAKE} show-var VARNAME=${v}`
if [ $? != 0 ]; then