src/tools/py2sis/ensymble/install.sh
changeset 0 ca70ae20a155
equal deleted inserted replaced
-1:000000000000 0:ca70ae20a155
       
     1 #!/bin/sh
       
     2 
       
     3 if test -z "$1"; then
       
     4   echo "install.sh targetpath [name]"
       
     5   exit 1
       
     6 fi
       
     7 
       
     8 if test -z "$PYTHON"; then
       
     9   PYTHON="python"
       
    10 fi
       
    11 
       
    12 name=ensymble
       
    13 if test -n "$2"; then
       
    14   name="`basename "$2" .py`"
       
    15 fi
       
    16 
       
    17 "$PYTHON" squeeze/squeeze.py -1 -o "$name" -b cmdmain cmdmain.py \
       
    18   cmd_altere32.py cmd_genuid.py cmd_infoe32.py cmd_mergesis.py cmd_py2sis.py \
       
    19   cmd_signsis.py cmd_simplesis.py cmd_version.py cryptutil.py miffile.py \
       
    20   rscfile.py sisfield.py sisfile.py symbianutil.py defaultcert.py
       
    21 cp "$name".py "$1"
       
    22 chmod +x "$1"/"$name".py
       
    23 rm "$name".py
       
    24 
       
    25 echo "Ensymble command line tool installed as $1/$name.py"