diff options
author | rillig <rillig@pkgsrc.org> | 2005-11-18 10:58:37 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-11-18 10:58:37 +0000 |
commit | ea089f3e2cda74cfada24b1d8dc5c20ab55fb263 (patch) | |
tree | 195b229709c5f44e55574b29d6c797c64f051bf0 /mk/scripts/mkdatabase | |
parent | b06e4a7b377b45a0a96ea21c149e7455d924379f (diff) | |
download | pkgsrc-ea089f3e2cda74cfada24b1d8dc5c20ab55fb263.tar.gz |
Renamed append to append_flag. Removed superfluous quotes around that
variable. As it is controlled completely by this program, they are not
needed.
Diffstat (limited to 'mk/scripts/mkdatabase')
-rwxr-xr-x | mk/scripts/mkdatabase | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mk/scripts/mkdatabase b/mk/scripts/mkdatabase index c924c79ed7e..b738dfb06c9 100755 --- a/mk/scripts/mkdatabase +++ b/mk/scripts/mkdatabase @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: mkdatabase,v 1.7 2005/11/18 10:55:30 rillig Exp $ +# $NetBSD: mkdatabase,v 1.8 2005/11/18 10:58:37 rillig Exp $ # # Script for generating a database with complete dependency information # for a particular package @@ -57,6 +57,7 @@ MAX_PASS=${MAX_PASS:-25} # prog=$0 +append_flag=no debug_flag="" # meaning "no" # @@ -93,14 +94,12 @@ usage() { # ###################################################################### -append=no - while test $# -gt 0; do case $1 in # Append to the database -a|--append) - append=yes + append_flag=yes shift ;; @@ -158,7 +157,7 @@ case ${DATABASE} in esac -if [ "X$append" = "Xyes" ]; then +if [ $append_flag = yes ]; then echo "$prompt Appending to database in ${DATABASE}" if [ ! -f "${DATABASE}" ]; then touch "${DATABASE}" |