Added some command line argument checking and usage info.
authorTim Potter <tpot@samba.org>
Wed, 1 Aug 2001 01:20:10 +0000 (01:20 +0000)
committerTim Potter <tpot@samba.org>
Wed, 1 Aug 2001 01:20:10 +0000 (01:20 +0000)
(This used to be commit a13eedf8bdefacfb569eb006d8c169247272ecf6)

packaging/bin/update-pkginfo

index fab56daebf880acac2d50c38e09034010f531c6c..8432173cc8826bdbf0fd3a49323d7064ebf9aa1e 100755 (executable)
@@ -3,6 +3,11 @@
 VERSION=$1
 RELEASE=$2
 
+if [ $# -ne 2 ]; then
+    echo Usage: update-pkginfo VERSION RELEASE
+    exit 1
+fi
+
 for f in */*/*.tmpl; do
        f2=`echo $f | sed s/.tmpl//g`
        echo $f2