diff options
Diffstat (limited to 'mk/scripts/mkreadme')
-rwxr-xr-x | mk/scripts/mkreadme | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mk/scripts/mkreadme b/mk/scripts/mkreadme index bd83a38b804..e74442485f9 100755 --- a/mk/scripts/mkreadme +++ b/mk/scripts/mkreadme @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: mkreadme,v 1.2 2003/01/04 22:28:33 dmcmahill Exp $ +# $NetBSD: mkreadme,v 1.3 2003/05/06 17:42:05 jmmv Exp $ # # Script for README.html generation # @@ -126,7 +126,7 @@ do case "$1" in - # We're generating README.html's for a CD-ROM + # We're generating README.html's for a CD-ROM -c|--cdrom) ftp_readme=no shift @@ -144,7 +144,7 @@ do shift ;; - # We're generating README.html's for a CD-ROM + # We're generating README.html's for a CD-ROM -f|--ftp) ftp_readme=yes shift @@ -194,7 +194,7 @@ do ;; # Version - -v|--version) + -v|--version) ${AWK} '/^#[ \t]*\$NetBSD/ {gsub(/,v/,"",$3);printf("%s: Version %s, %s\n",$3,$4,$5); exit 0;}' $prog exit 0 ;; @@ -204,7 +204,7 @@ do clean_and_exit ;; - *) + *) break ;; @@ -251,7 +251,7 @@ echo " " echo "Extracting configuration variables:" echo " " if [ -d ${PKGSRCDIR}/pkgtools/pkglint ]; then - cd ${PKGSRCDIR}/pkgtools/pkglint + cd ${PKGSRCDIR}/pkgtools/pkglint for v in DISTDIR PACKAGES PKGREPOSITORYSUBDIR PKG_SUFX MACHINE_ARCH PKG_URL OPSYS OS_VERSION FTP_PKG_URL_HOST FTP_PKG_URL_DIR CDROM_PKG_URL_HOST CDROM_PKG_URL_DIR do @@ -345,7 +345,7 @@ if [ "x$restart" = "xno" ] ; then # make sure we don't have an old database lying around rm -fr $DATABASEFILE - cd ${PKGSRCDIR} + cd ${PKGSRCDIR} list=`grep '^[[:space:]]*'SUBDIR */Makefile | sed 's,/Makefile.*=[[:space:]]*,/,'` for pkgdir in $list do @@ -372,7 +372,7 @@ if [ "x$restart" = "xno" ] ; then if [ `${EXPR} $npkg % 100 = 0` -eq 1 ]; then echo " " echo "$npkg" - fi + fi npkg=`${EXPR} $npkg + 1` cd $PKGSRCDIR done |