]> 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 c5785ab2ed6b02809612e7fc0aef01d4bd6d0ba4..bf84b34ebd3ed9663fcf146672c67d0cc47061ad 100644 (file)
@@ -1,18 +1,20 @@
 #!/bin/sh
-#findlang - automagically generate list of language specific files
-#for inclusion in an rpm spec file.
-#This does assume that the *.mo files are under .../share/locale/...
-#Run with no arguments gets a usage message.
+# $Id$
 
-#findlang is copyright (c) 1998 by W. L. Estes <wlestes@uncg.edu>
+# findlang - automagically generate list of language specific files
+# for inclusion in an rpm spec file.
+# This does assume that the *.mo files are under .../share/locale/...
+# Run with no arguments gets a usage message.
 
-#Redistribution and use of this software are hereby permitted for any
-#purpose as long as this notice and the above copyright notice remain
-#in tact and are included with any redistribution of this file or any
-#work based on this file.
+# findlang is copyright (c) 1998 by W. L. Estes <wlestes@uncg.edu>
 
-#changes:
-# $Id$
+# Redistribution and use of this software are hereby permitted for any
+# purpose as long as this notice and the above copyright notice remain
+# in tact and are included with any redistribution of this file or any
+# work based on this file.
+
+# Changes:
+#
 # 2006-08-28 Elan Ruusamäe <glen@pld-linux.org>
 #   * fixed --all-name which got broken with last change.
 # 2006-08-09 Elan Ruusamäe <glen@pld-linux.org>
 #   * 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
@@ -76,6 +78,8 @@ else
 fi
 shift
 
+echo "$PROG $VERSION: find-lang for '$NAME'"
+
 GNOME='#'
 KDE='#'
 OMF='#'
@@ -207,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.061346 seconds and 4 git commands to generate.