Added some command line argument checking and usage info.
[ira/wip.git] / 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