source:
utils/developer/CheckMolecuilderEnables.sh@
bc4be2
| Last change on this file since bc4be2 was 97a858, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 1.7 KB | |
| Rev | Line | |
|---|---|---|
| [97a858] | 1 | #!/bin/bash -x |
| 2 | # | |
| 3 | # This scripts stores required packages locally prior to calling | |
| 4 | # CheckAllPossiblEnables.sh such that e.g. they don't are accessed over | |
| 5 | # the network. | |
| 6 | ||
| 7 | function checkdir | |
| 8 | { | |
| 9 | # $1 is the variable name | |
| 10 | # $2 is the variable to check | |
| 11 | if [ -z $2 ]; then | |
| 12 | echo "Please set a $1 environment variable." | |
| 13 | ||
| 14 | if [ -z $1 ]; then | |
| 15 | echo "Usage: $0 <commit> <TMPDIR=...> <PACKAGEDIR=...> <MOLECUILDERDIR=...>" | |
| 16 | exit 1 | |
| 17 | fi | |
| 18 | ||
| 19 | # TMPDIR is where we test | |
| 20 | checkdir TMPDIR $TMPDIR | |
| 21 | # PACKAGEDIR contains required packages | |
| 22 | checkdir PACKAGEDIR $PACKAGEDIR | |
| 23 | # MOLECUILDERDIR contains molecuilder repo to check | |
| 24 | checkdir MOLECUILDERDIR $MOLECUILDERDIR | |
| 25 | ||
| 26 | mkdir -p /tmp/ccache-$user | |
| 27 | ||
| 28 | # make dependencies local | |
| 29 | for depdir in boost-1.47 Qt-4.7.4 CodePatterns-1.2.3 JobMarket-1.1.1; do | |
| 30 | echo "Syncing local ${depdir} with remote ..." | |
| 31 | if [ ! -e $TMPDIR/dependencies/${depdir} ]; then | |
| 32 | echo "Creating dir ..." | |
| 33 | mkdir -p $TMPDIR/dependencies/${depdir} | |
| 34 | fi | |
| 35 | rsync -avz --delete-after $PACKAGEDIR/${depdir}/ $TMPDIR/dependencies/${depdir} | |
| 36 | done | |
| 37 | find $TMPDIR/dependencies/ -path '*/pkgconfig/*' -name '*.pc' -exec sed -i -e "s#$PACKAGEDIR#$TMPDIR/dependencies#g" {} \; | |
| 38 | ||
| 39 | export PKG_CONFIG_PATH="$TMPDIR/dependencies/Qt-4.7.4/lib/pkgconfig" | |
| 40 | rm molecuilder -rf | |
| 41 | ./CheckAllPossibleEnables.sh $MOLECUILDERDIR molecuilder $1 --with-Qt-dir=$TMPDIR/dependencies/Qt-4.7.4 --with-Qt-bin=$TMPDIR/dependencies/Qt-4.7.4/bin --with-codepatterns=$TMPDIR/dependencies/CodePatterns-1.2.3 --with-jobmarket=$TMPDIR/dependencies/JobMarket-1.1.1 --with-boost=$TMPDIR/dependencies/boost-1.47 --with-vmg-mpi CCACHE_DIR="/tmp/ccache-heber/" CXX="ccache g++" MPICXX="mpicxx.openmpi" CXXFLAGS="-Wall -g3" MPICXX=mpicxx.openmpi PKG_CONFIG_PATH="$TMPDIR/dependencies/Qt-4.7.4/lib/pkgconfig" |
Note:
See TracBrowser
for help on using the repository browser.
