Commit cf8643d6c9176c125b393b6f4695b09e78f32dc7

Authored by knodlseder
1 parent d8562b58

renamed to ctools

ctatools.pc.in renamed to ctools.pc.in
... ... @@ -3,13 +3,13 @@ exec_prefix=@exec_prefix@
3 3 libdir=${exec_prefix}/lib
4 4 includedir=${prefix}/include
5 5  
6   -Name: ctatools
  6 +Name: ctools
7 7 Description: CTA science analysis tools
8   -URL: http://cta.irap.omp.eu/ctatools
  8 +URL: http://cta.irap.omp.eu/ctools
9 9 Version: 0.2.5
10 10 Requires:
11 11 Requires.private: GammaLib >= 0.4.11
12 12 Conflicts:
13   -Cflags: -I${includedir}/ctatools
14   -Libs: -L${libdir} -lctatools
  13 +Cflags: -I${includedir}/ctools
  14 +Libs: -L${libdir} -lctools
15 15 Libs.private:
16 16 \ No newline at end of file
... ...
ctatools.sh renamed to ctools.sh
... ... @@ -3,30 +3,28 @@
3 3 # Set parameters
4 4 installdir=$(pwd)/build
5 5  
6   -echo "Checkout latest ctatools"
7   -rm -rf ctatools
8   -cvs -Q -d /home/cvs export -N -r HEAD "ctatools"
  6 +echo "Checkout latest ctools"
  7 +rm -rf ctools
  8 +cvs -Q -d /home/cvs export -N -r HEAD "ctools"
9 9  
10 10 # Extract version number
11   -version=`cat ctatools/configure.ac | grep 'AC_INIT' | awk -F"[" '{print $3}' | sed 's/],//' | sed 's/\./ /g'`
  11 +version=`cat ctools/configure.ac | grep 'AC_INIT' | awk -F"[" '{print $3}' | sed 's/],//' | sed 's/\./ /g'`
12 12 version=`printf "%2.2d-%2.2d-%2.2d" $version`
13   -echo "ctatools version: "$version
  13 +echo "ctools version: "$version
14 14  
15 15 # Set directory name
16   -sourcedir=ctatools-$version
  16 +sourcedir=ctools-$version
17 17 rm -rf $sourcedir
18   -mv ctatools $sourcedir
  18 +mv ctools $sourcedir
19 19  
20 20 echo "Create Makefile.in and configure scripts"
21 21 cd $sourcedir
22   -#mkdir m4
23 22 ./autogen.sh
24   -#rm -rf autom4te.cache
25   -rm -f ctatools.sh
  23 +rm -f ctools.sh
26 24 cd ..
27 25  
28   -echo "Create ctatool_wrap.cpp and ctatool.py files for python binding (making swig obsolete)"
29   -swig -c++ -python -Wall -includeall -I$installdir/share/gammalib/swig -o $sourcedir/pyext/ctatools_wrap.cpp -outdir $sourcedir/pyext $sourcedir/pyext/ctatools.i
  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
30 28  
31 29 echo "Make files read/write"
32 30 chmod -R u+rw $sourcedir
... ... @@ -36,15 +34,15 @@ tar cvf - $sourcedir > $sourcedir.tar
36 34 rm -f $sourcedir.tar.gz
37 35 gzip $sourcedir.tar
38 36  
39   -echo "Configure ctatools"
  37 +echo "Configure ctools"
40 38 cd $sourcedir
41 39 ./configure --prefix=$installdir
42 40  
43   -echo "Compile ctatools"
  41 +echo "Compile ctools"
44 42 make -j10
45 43  
46   -echo "Check ctatools"
  44 +echo "Check ctools"
47 45 make check
48 46  
49   -echo "Install ctatools"
  47 +echo "Install ctools"
50 48 make install
... ...