Commit fcec5cc0680eb50bac1fb0fb36bab4ee3e3b413d

Authored by Jürgen Knödlseder
1 parent 9a2fa02d

Obsolete file.

Showing 1 changed file with 0 additions and 48 deletions
ctools.sh deleted
1   -#! /bin/bash -f
2   -
3   -# Set parameters
4   -installdir=$(pwd)/build
5   -
6   -echo "Checkout latest ctools"
7   -rm -rf ctools
8   -cvs -Q -d /home/cvs export -N -r HEAD "ctools"
9   -
10   -# Extract version number
11   -version=`cat ctools/configure.ac | grep 'AC_INIT' | awk -F"[" '{print $3}' | sed 's/],//' | sed 's/\./ /g'`
12   -version=`printf "%2.2d-%2.2d-%2.2d" $version`
13   -echo "ctools version: "$version
14   -
15   -# Set directory name
16   -sourcedir=ctools-$version
17   -rm -rf $sourcedir
18   -mv ctools $sourcedir
19   -
20   -echo "Create Makefile.in and configure scripts"
21   -cd $sourcedir
22   -./autogen.sh
23   -rm -f ctools.sh
24   -cd ..
25   -
26   -echo "Create ctool_wrap.cpp and ctool.py files for python binding (making swig obsolete)"
27   -swig -c++ -python -Wall -includeall -I$installdir/share/gammalib/swig -o $sourcedir/pyext/ctools_wrap.cpp -outdir $sourcedir/pyext $sourcedir/pyext/ctools.i
28   -
29   -echo "Make files read/write"
30   -chmod -R u+rw $sourcedir
31   -
32   -echo "Create tarball"
33   -tar cvf - $sourcedir > $sourcedir.tar
34   -rm -f $sourcedir.tar.gz
35   -gzip $sourcedir.tar
36   -
37   -echo "Configure ctools"
38   -cd $sourcedir
39   -./configure --prefix=$installdir
40   -
41   -echo "Compile ctools"
42   -make -j10
43   -
44   -echo "Check ctools"
45   -make check
46   -
47   -echo "Install ctools"
48   -make install