File: install-kst

package info (click to toggle)
kst 2.0.8-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 30,748 kB
  • sloc: cpp: 97,086; ansic: 13,364; python: 2,970; sh: 761; yacc: 184; lex: 143; makefile: 141; javascript: 122; perl: 30; xml: 30
file content (56 lines) | stat: -rwxr-xr-x 1,034 bytes parent folder | download | duplicates (5)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh

cd `dirname $0`

export SCRIPTDIR=$PWD
export BUILDDIR=$PWD/build

echo "Building Kst from $SCRIPTDIR into $BUILDDIR"

if [ "$1" = "debug" ]
then
  echo "Building in Debug mode"
  export KST_DEBUG_MODE=1
else
  echo "Building in Release mode"
  export KST_DEBUG_MODE=0
fi

if [ "$2" ]
then
  echo "Installation location of $2 has been requested"
  export INSTALL_PREFIX=$2
fi

if [ "$3" ]
then
  echo "Installation library directory of $3 has been requested"
  export INSTALL_LIBDIR=$3
fi

if [ "$4" ]
then
  echo "Output directory of $4 has been requested"
  export OUTPUT_DIR=$4
fi

if [ "$INSTALL_LIBDIR" ]
then
  echo "Build will be automatically installed to the configured location ($INSTALL_PREFIX)"
else
  echo "Build will be automatically install to the default location (/usr)"
fi

mkdir -p $BUILDDIR
cd $BUILDDIR
qmake -r $SCRIPTDIR/kst.pro

if [ -d /opt/icecream/bin ]
then
	echo "Using Icecream"
	PATH=/opt/icecream/bin:$PATH make -j4
	PATH=/opt/icecream/bin:$PATH make install
else
	make -j3
	make install
fi