Mercurial > trustbridge
comparison packaging/linux-installer.inc.in @ 680:a5a709c6ce93
Added minimal shar based installer for linux.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Mon, 30 Jun 2014 18:33:26 +0200 |
parents | |
children | 578860edde53 |
comparison
equal
deleted
inserted
replaced
678:237af0c82454 | 680:a5a709c6ce93 |
---|---|
1 #!/bin/bash | |
2 | |
3 PREFIX=/usr/local | |
4 | |
5 fatal() | |
6 { | |
7 echo "$1" >&2 | |
8 echo "Installation failed." >&2 | |
9 exit 1 | |
10 } | |
11 | |
12 cat <<EOF | |
13 ------------------------------------------------------------------------ | |
14 | |
15 TrustBridge - Installer | |
16 Version @PROJECT_VERSION@ | |
17 | |
18 ------------------------------------------------------------------------ | |
19 EOF | |
20 | |
21 echo -n "Select installation prefix for TrustBridge [${PREFIX}]: " | |
22 read -e path | |
23 | |
24 echo "Installing to '$path':" | |
25 | |
26 if [ ! -d "$path" ] ; then | |
27 echo "creating installation directory ..." | |
28 install -d "$path" || fatal "Could not create '$path'!" | |
29 fi | |
30 | |
31 echo "unpacking files ..." | |
32 cd "$path" | |
33 | |
34 # ---------------------------------------------------------------------- | |
35 # regular shar archive appended here: |