Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
2 new scripts: a central config file, and a distribution builder
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 22 Dec 2009 15:39:39 +0000 (15:39 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 22 Dec 2009 15:39:39 +0000 (15:39 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6914 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/cmake_simgrid.conf [new file with mode: 0644]
buildtools/Cmake/make_dist.sh [new file with mode: 0644]

diff --git a/buildtools/Cmake/cmake_simgrid.conf b/buildtools/Cmake/cmake_simgrid.conf
new file mode 100644 (file)
index 0000000..5a4661f
--- /dev/null
@@ -0,0 +1,8 @@
+# This is the configuration file for every scripts around.
+# Don't mess with it, unless you know what you are doing
+
+# Where to find the svn checkout
+SIMGRID_SVN_ROOT=~/simgrid-svn
+
+# Root of build directories and so on
+SIMGRID_BASEDIR=~/simgrid
\ No newline at end of file
diff --git a/buildtools/Cmake/make_dist.sh b/buildtools/Cmake/make_dist.sh
new file mode 100644 (file)
index 0000000..26cf404
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# This script creates a new dist archive from the svn
+source cmake_simgrid.conf
+
+echo "get Linux dependencies"
+sudo aptitude install -y libtool automake1.10 autoconf libgcj10-dev gcc g++ bash flex flexml doxygen bibtex bibtool iconv bibtex2html addr2line valgrind
+
+echo "update the svn"
+cd ${SIMGRID_SVN_ROOT}
+svn up
+
+echo "rebuild the missing files for compilation"
+./bootstrap
+./configure --enable-maintainer-mode --disable-compile-optimizations
+
+echo "Make the archive"
+make all dist
+
+echo "Copy the archive in position"
+mv simgrid*.tar.gz ${SIMGRID_BASEDIR}
+
+echo "Done!"