File: install.sh

package info (click to toggle)
ensymble 0.27-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 476 kB
  • ctags: 414
  • sloc: python: 4,276; makefile: 42; sh: 31
file content (25 lines) | stat: -rwxr-xr-x 593 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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_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"