pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/scripts Renamed append to append_flag. Removed supe...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ccd351a1a4c2
branches:  trunk
changeset: 503320:ccd351a1a4c2
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Nov 18 10:58:37 2005 +0000

description:
Renamed append to append_flag. Removed superfluous quotes around that
variable. As it is controlled completely by this program, they are not
needed.

diffstat:

 mk/scripts/mkdatabase |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 78790901bb5d -r ccd351a1a4c2 mk/scripts/mkdatabase
--- a/mk/scripts/mkdatabase     Fri Nov 18 10:55:30 2005 +0000
+++ b/mk/scripts/mkdatabase     Fri Nov 18 10:58:37 2005 +0000
@@ -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 @@
 #
 
 prog=$0
+append_flag=no
 debug_flag=""          # meaning "no"
 
 #
@@ -93,14 +94,12 @@
 #
 ######################################################################
 
-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 @@
 esac
 
 
-if [ "X$append" = "Xyes" ]; then
+if [ $append_flag = yes ]; then
     echo "$prompt Appending to database in ${DATABASE}"
     if [ ! -f "${DATABASE}" ]; then
        touch "${DATABASE}"



Home | Main Index | Thread Index | Old Index