summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-11-18 10:58:37 +0000
committerrillig <rillig@pkgsrc.org>2005-11-18 10:58:37 +0000
commit36f560a6537ab578523c7246029961e36248e495 (patch)
tree195b229709c5f44e55574b29d6c797c64f051bf0 /mk/scripts
parent2de6abd1bee6a5d3005c2f85ed85fc2c0cb51e8e (diff)
downloadpkgsrc-36f560a6537ab578523c7246029961e36248e495.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-xmk/scripts/mkdatabase9
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}"