diff options
author | rillig <rillig> | 2005-11-18 10:58:37 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-11-18 10:58:37 +0000 |
commit | 71ab10f57619e8b7b052067e7572996f0298bdc3 (patch) | |
tree | 195b229709c5f44e55574b29d6c797c64f051bf0 /mk/scripts | |
parent | 3784f58b8f52266f279e6858bb57fbfc708cc31b (diff) | |
download | pkgsrc-71ab10f57619e8b7b052067e7572996f0298bdc3.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')
-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}" |