#!/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
fi
shift
+echo "$PROG $VERSION: find-lang for '$NAME'"
+
GNOME='#'
KDE='#'
OMF='#'
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