From cf8643d6c9176c125b393b6f4695b09e78f32dc7 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Fri, 7 Oct 2011 01:03:06 +0000 Subject: [PATCH] renamed to ctools --- ctatools.pc.in | 15 --------------- ctatools.sh | 50 -------------------------------------------------- ctools.pc.in | 15 +++++++++++++++ ctools.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 65 deletions(-) delete mode 100644 ctatools.pc.in delete mode 100755 ctatools.sh create mode 100644 ctools.pc.in create mode 100755 ctools.sh diff --git a/ctatools.pc.in b/ctatools.pc.in deleted file mode 100644 index ee20469..0000000 --- a/ctatools.pc.in +++ /dev/null @@ -1,15 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: ctatools -Description: CTA science analysis tools -URL: http://cta.irap.omp.eu/ctatools -Version: 0.2.5 -Requires: -Requires.private: GammaLib >= 0.4.11 -Conflicts: -Cflags: -I${includedir}/ctatools -Libs: -L${libdir} -lctatools -Libs.private: \ No newline at end of file diff --git a/ctatools.sh b/ctatools.sh deleted file mode 100755 index 30b0940..0000000 --- a/ctatools.sh +++ /dev/null @@ -1,50 +0,0 @@ -#! /bin/bash -f - -# Set parameters -installdir=$(pwd)/build - -echo "Checkout latest ctatools" -rm -rf ctatools -cvs -Q -d /home/cvs export -N -r HEAD "ctatools" - -# Extract version number -version=`cat ctatools/configure.ac | grep 'AC_INIT' | awk -F"[" '{print $3}' | sed 's/],//' | sed 's/\./ /g'` -version=`printf "%2.2d-%2.2d-%2.2d" $version` -echo "ctatools version: "$version - -# Set directory name -sourcedir=ctatools-$version -rm -rf $sourcedir -mv ctatools $sourcedir - -echo "Create Makefile.in and configure scripts" -cd $sourcedir -#mkdir m4 -./autogen.sh -#rm -rf autom4te.cache -rm -f ctatools.sh -cd .. - -echo "Create ctatool_wrap.cpp and ctatool.py files for python binding (making swig obsolete)" -swig -c++ -python -Wall -includeall -I$installdir/share/gammalib/swig -o $sourcedir/pyext/ctatools_wrap.cpp -outdir $sourcedir/pyext $sourcedir/pyext/ctatools.i - -echo "Make files read/write" -chmod -R u+rw $sourcedir - -echo "Create tarball" -tar cvf - $sourcedir > $sourcedir.tar -rm -f $sourcedir.tar.gz -gzip $sourcedir.tar - -echo "Configure ctatools" -cd $sourcedir -./configure --prefix=$installdir - -echo "Compile ctatools" -make -j10 - -echo "Check ctatools" -make check - -echo "Install ctatools" -make install diff --git a/ctools.pc.in b/ctools.pc.in new file mode 100644 index 0000000..4553e8f --- /dev/null +++ b/ctools.pc.in @@ -0,0 +1,15 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: ctools +Description: CTA science analysis tools +URL: http://cta.irap.omp.eu/ctools +Version: 0.2.5 +Requires: +Requires.private: GammaLib >= 0.4.11 +Conflicts: +Cflags: -I${includedir}/ctools +Libs: -L${libdir} -lctools +Libs.private: \ No newline at end of file diff --git a/ctools.sh b/ctools.sh new file mode 100755 index 0000000..53bffb7 --- /dev/null +++ b/ctools.sh @@ -0,0 +1,48 @@ +#! /bin/bash -f + +# Set parameters +installdir=$(pwd)/build + +echo "Checkout latest ctools" +rm -rf ctools +cvs -Q -d /home/cvs export -N -r HEAD "ctools" + +# Extract version number +version=`cat ctools/configure.ac | grep 'AC_INIT' | awk -F"[" '{print $3}' | sed 's/],//' | sed 's/\./ /g'` +version=`printf "%2.2d-%2.2d-%2.2d" $version` +echo "ctools version: "$version + +# Set directory name +sourcedir=ctools-$version +rm -rf $sourcedir +mv ctools $sourcedir + +echo "Create Makefile.in and configure scripts" +cd $sourcedir +./autogen.sh +rm -f ctools.sh +cd .. + +echo "Create ctool_wrap.cpp and ctool.py files for python binding (making swig obsolete)" +swig -c++ -python -Wall -includeall -I$installdir/share/gammalib/swig -o $sourcedir/pyext/ctools_wrap.cpp -outdir $sourcedir/pyext $sourcedir/pyext/ctools.i + +echo "Make files read/write" +chmod -R u+rw $sourcedir + +echo "Create tarball" +tar cvf - $sourcedir > $sourcedir.tar +rm -f $sourcedir.tar.gz +gzip $sourcedir.tar + +echo "Configure ctools" +cd $sourcedir +./configure --prefix=$installdir + +echo "Compile ctools" +make -j10 + +echo "Check ctools" +make check + +echo "Install ctools" +make install -- libgit2 0.21.4