Author: glen                         Date: Tue Mar  6 22:28:48 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- some verbosity when script runs

---- Files affected:
SOURCES:
   rpm-find-lang (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SOURCES/rpm-find-lang
diff -u SOURCES/rpm-find-lang:1.16 SOURCES/rpm-find-lang:1.17
--- SOURCES/rpm-find-lang:1.16  Fri Jan 12 21:23:49 2007
+++ SOURCES/rpm-find-lang       Tue Mar  6 23:28:43 2007
@@ -32,10 +32,12 @@
 #   * added support for GNOME help files
 #   * start support for KDE help files
 
+PROG=${0##*/}
+
 usage () {
 cat <<EOF
 
-Usage: $0 TOP_DIR PACKAGE_NAME [prefix]
+Usage: $PROG TOP_DIR PACKAGE_NAME [prefix]
 
 where TOP_DIR is
 the top of the tree containing the files to be processed--should be
@@ -56,9 +58,9 @@
 if [ -z "$1" ]; then
        usage
 elif [ $1 = / ]; then
-       echo >&2 "$0: expects non-/ argument for '$1'"
+       echo >&2 "$PROG: expects non-/ argument for '$1'"
 elif [ ! -d $1 ]; then
-       echo "$0: $1: no such directory"
+       echo "$PROG: $1: No such directory"
        exit 1
 else
        TOP_DIR="${1%/}"
@@ -82,17 +84,21 @@
     case "$1" in
        --with-gnome)
                GNOME=''
+               echo >&2 "$PROG: Enabling with GNOME"
                shift
                ;;
        --with-kde)
+               echo >&2 "$PROG: Enabling with KDE"
                KDE=''
                shift
                ;;
        --without-mo)
+               echo >&2 "$PROG: Disabling .mo files"
                MO='#'
                shift
                ;;
        --all-name)
+               echo >&2 "$PROG: Enabling with all names"
                ALL_NAME=''
                NO_ALL_NAME='#'
                shift
@@ -111,6 +117,8 @@
        sed -e '
                s/:.*//
                s:'"$TOP_DIR"'::' > __find.files
+else
+       echo "$PROG: Using cached __find.files"
 fi
 
 (
@@ -128,6 +136,8 @@
 
 if [ ! -f __find.dirs ]; then
        find $TOP_DIR -type d | sed 's:'"$TOP_DIR"'::' > __find.dirs
+else
+       echo "$PROG: Using cached __find.dirs"
 fi
 
 (
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rpm-find-lang?r1=1.16&r2=1.17&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to