]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-find-lang
- avoid confusion when $NAME is noun
[packages/rpm.git] / rpm-find-lang
index 7238bae99414d322740503829f2b56475908cb92..bf84b34ebd3ed9663fcf146672c67d0cc47061ad 100644 (file)
 #   * start support for KDE help files
 
 PROG=${0##*/}
+VERSION=$(set -- $Revision$; echo $2)
 
 usage () {
 cat <<EOF
-
 Usage: $PROG TOP_DIR PACKAGE_NAME [prefix]
 
 where TOP_DIR is
@@ -78,6 +78,8 @@ else
 fi
 shift
 
+echo "$PROG $VERSION: find-lang for '$NAME'"
+
 GNOME='#'
 KDE='#'
 OMF='#'
@@ -209,6 +211,6 @@ s:%lang(C) ::' >> $MO_NAME
 s:%lang(C) ::' >> $MO_NAME
 
 if [ "$(egrep -v '(^%defattr|^$)' $MO_NAME | wc -l)" -le 0 ]; then
-       echo >&2 "Error: international files not found for $NAME!"
+       echo >&2 "$PROG: Error: international files not found for '$NAME'!"
        exit 1
 fi
This page took 0.02621 seconds and 4 git commands to generate.