diff options
author | rillig <rillig> | 2005-11-18 10:58:37 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-11-18 10:58:37 +0000 |
commit | 01da51903eeaddfbba57e835cafc9344698386c9 (patch) | |
tree | 195b229709c5f44e55574b29d6c797c64f051bf0 /mk/scripts/mkdatabase | |
parent | 8d0a9b225a6b23c8ae32a922a021634698242860 (diff) | |
download | pkgsrc-01da51903eeaddfbba57e835cafc9344698386c9.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}" |