Commit 4210521b89d0abce38abe671f8b2f6a4019ffe46

Authored by knodlseder
1 parent 930ffa91

update for release 0.4.7

Showing 1 changed file with 32 additions and 20 deletions
gammalib.sh
1 1 #! /bin/bash -f
2 2  
  3 +# Parameters
3 4 sourcedir=gammalib
4 5 installdir=$(pwd)/build
  6 +makedoc="no"
5 7  
6 8 echo "Remove existing folder"
7 9 rm -rf $sourcedir
... ... @@ -9,25 +11,24 @@ rm -rf $sourcedir
9 11  
10 12 echo "Checkout latest GammaLib"
11 13 cvs -Q -d /home/cvs export -N -r HEAD "gammalib"
12   -rm -rf $sourcedir/inst/lat/test/data
13   -rm -rf $sourcedir/inst/lat/test/irf
14   -#rm -rf $sourcedir/inst/cta/test/data
15   -#rm -rf $sourcedir/inst/cta/test/irf
  14 +rm -rf $sourcedir/inst/lat/test/data/ft2.fits.gz
16 15  
17 16 echo "Create Makefile.in and configure scripts"
18 17 cd $sourcedir
19 18 #
20   -aclocal -I m4
21   -libtoolize --copy
22   -autoconf
23   -autoheader
24   -automake --add-missing --copy
  19 +./autogen.sh
  20 +#aclocal -I m4
  21 +#libtoolize --copy
  22 +#autoconf
  23 +#autoheader
  24 +#automake --add-missing --copy
25 25 #
26   -rm -f autogen.sh
  26 +#rm -f autogen.sh
27 27 #rm -rf m4
28   -rm -rf autom4te.cache
  28 +#rm -rf autom4te.cache
29 29 #rm -f configure.ac
30 30 #rm -f Makefile.am
  31 +rm -f gammalib.sh
31 32 #
32 33 cd ..
33 34  
... ... @@ -36,10 +37,17 @@ inc_inst="-I$sourcedir/inst/mwl/pyext -I$sourcedir/inst/lat/pyext -I$sourcedir/i
36 37 opt_inst="-DWITH_INST_MWL -DWITH_INST_LAT -DWITH_INST_CTA"
37 38 swig -c++ -python -Wall -includeall -I$sourcedir/src $inc_inst $opt_inst -o $sourcedir/pyext/gammalib_wrap.cpp -outdir $sourcedir/pyext $sourcedir/pyext/gammalib.i
38 39  
39   -#echo "Create doxygen documentation"
40   -#cd gammalib/doc
41   -#doxygen Doxyfile
42   -#cd ../..
  40 +if [ "x$makedoc" == "xyes" ] ; then
  41 + echo "Create doxygen documentation"
  42 + cd gammalib/doc
  43 + doxygen Doxyfile
  44 + cd latex
  45 + make
  46 + make
  47 + dvips -o refman.ps refman
  48 + ps2pdf refman.ps
  49 + cd ../..
  50 +fi
43 51  
44 52 echo "Create LaTeX documentation"
45 53 cd gammalib/doc
... ... @@ -103,11 +111,15 @@ cd $sourcedir
103 111 echo "Compile GammaLib"
104 112 make -j10
105 113  
106   -echo "Install GammaLib"
107   -make install
  114 +#echo "Install GammaLib"
  115 +#make install
108 116  
109 117 echo "Check GammaLib"
110   -export PATH=$installdir/bin:$PATH
111   -export LD_LIBRARY_PATH=$installdir/lib:$LD_LIBRARY_PATH
112   -export PYTHONPATH=$installdir/lib/python2.5/site-packages:$PYTHONPATH
  118 +#export PATH=$installdir/bin:$PATH
  119 +#export LD_LIBRARY_PATH=$installdir/lib:$LD_LIBRARY_PATH
  120 +#export PYTHONPATH=$installdir/lib/python2.5/site-packages:$PYTHONPATH
113 121 make check
  122 +
  123 +echo "Install GammaLib"
  124 +make install
  125 +
... ...