src/tools/py2sis/ensymble/install.sh
changeset 0 ca70ae20a155
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/tools/py2sis/ensymble/install.sh	Tue Feb 16 10:07:05 2010 +0530
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+if test -z "$1"; then
+  echo "install.sh targetpath [name]"
+  exit 1
+fi
+
+if test -z "$PYTHON"; then
+  PYTHON="python"
+fi
+
+name=ensymble
+if test -n "$2"; then
+  name="`basename "$2" .py`"
+fi
+
+"$PYTHON" squeeze/squeeze.py -1 -o "$name" -b cmdmain cmdmain.py \
+  cmd_altere32.py cmd_genuid.py cmd_infoe32.py cmd_mergesis.py cmd_py2sis.py \
+  cmd_signsis.py cmd_simplesis.py cmd_version.py cryptutil.py miffile.py \
+  rscfile.py sisfield.py sisfile.py symbianutil.py defaultcert.py
+cp "$name".py "$1"
+chmod +x "$1"/"$name".py
+rm "$name".py
+
+echo "Ensymble command line tool installed as $1/$name.py"