Cosmetic changes
authorVictor Kirhenshtein <victor@netxms.org>
Mon, 27 Aug 2007 12:30:34 +0000 (12:30 +0000)
committerVictor Kirhenshtein <victor@netxms.org>
Mon, 27 Aug 2007 12:30:34 +0000 (12:30 +0000)
tools/create_bin_apkg.sh

index 99d8397..e9ac15e 100755 (executable)
@@ -2,10 +2,14 @@
 
 prefix=$1
 version=$2
+suffix=$3
 if [ -z "$prefix" ]; then
-       echo "Usage: tools/create_bin_apkg.sh <prefix> <version>"
+       echo "Usage: tools/create_bin_apkg.sh <prefix> <version> [<suffix>]"
        exit 1
 fi
+if [ -z "$suffix" ]; then
+       suffix=`uname -s`
+fi
 
 if [ ! -r $prefix/bin/nxagentd ]; then
        echo "Unable to find compiled agent undex $prefix"
@@ -31,6 +35,6 @@ tar cvf inst.tar inst &&
 gzip inst.tar &&
 mv inst.tar.gz ../tools/ &&
 cd ../tools/ &&
-bash ./sharIt inst.tar.gz inst/installBinaryAgent.sh ../nxagent-$version.apkg &&
+bash ./sharIt inst.tar.gz inst/installBinaryAgent.sh ../nxagent-$version-$suffix.apkg &&
 cd .. &&
 rm -rf contrib/inst