Debian Codegraph @

debian/debian-ball-install

raw
1 #!/bin/bash
2 # script to build BALL / BALLView to create and compile a Debian/Ubuntu source package
3
4 set -e
5
6 #adapt to your settings
7 export BALL_PATH=`pwd | sed -e 's%/debian-upstream$%%g' -e 's%/debian$%%g'`
8 if [ ! -d "$BALL_PATH" ]; then
9 echo "$0: cannot find directory '$BALL_PATH' as presumed root of the source tree."
10 echo "Pwd: " `pwd`
11 exit -1
12 fi
13 unset QTDIR
14 echo $1
15
16 if [ "$1" == "configure" ]
17 then
18 cd $BALL_PATH
19 mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=./usr -DBALL_PATH=/usr -DBALL_DATA_PATH=/usr/share/BALL-1.5/data
20 exit $?
21 fi
22
23 if [ "$1" == "build" ]
24 then
25 cd $BALL_PATH/build && make -j 2 all doc doc_tutorial install
26 # cd $BALL_PATH/source && echo "Running doxygen... This can take a while..." && make doc && echo "Doxygen done!" && make depend && mymake && make install
27 # cd $BALL_PATH/source/PYTHON/EXTENSIONS && mymake && make install
28 # cd $BALL_PATH/source/APPLICATIONS/BALLVIEW && mymake
29 exit $?
30 fi
31
32 if [ "$1" == "install" ]
33 then
34 bash debian/createBALLDeb source
35 exit $?
36 fi
37
38 if [ "$1" == "clean" ]
39 then
40 cd $BALL_PATH/source
41 if [ -f Makefile ]
42 then
43 make clean
44 cd PYTHON/EXTENSIONS
45 make clean
46 rm -rf ../lib/Linux*
47 rm -rf ../doc/doxygen/latex/*
48 rm -f $BALL_PATH/source/config.status 2>/dev/null
49 fi
50 exit $?
51 fi