From c605b9bee6085ea6457ee35fd0b1533c3278d6ff Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 22 Dec 2009 18:00:01 +0000 Subject: [PATCH] Only install dependencies if they are not already installed git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6934 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- buildtools/scripts/make_dist.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/buildtools/scripts/make_dist.sh b/buildtools/scripts/make_dist.sh index beb084f728..967b079c29 100755 --- a/buildtools/scripts/make_dist.sh +++ b/buildtools/scripts/make_dist.sh @@ -10,8 +10,10 @@ else source ~/.simgrid_build.conf fi -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 transfig +if [ ! -e /usr/bin/libtool ] || [ ! -e /usr/bin/automake ] || [ ! -e /usr/bin/flex ] ; then + 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 transfig +fi make_dist -- 2.20.1