Created
September 3, 2009 11:20
-
-
Save baoilleach/180250 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
root=/home/oboyle/not-backed-up | |
prefix=$root/tree | |
if [ ! -d $root ] | |
then | |
echo "Cannot find the autobuild folder: $root" | |
exit 1 | |
fi | |
cd $root/openbabel-trunk | |
##rm -rf openbabel-trunk | |
##svn co https://svn.sourceforge.net/svnroot/openbabel/openbabel/trunk openbabel-trunk || { echo Checkout failed! >&2 ; exit 1; } | |
svn update || { echo Update failed! >&2 ; exit 1; } | |
mydate=`date` | |
revision=`svn info | grep Revision` | |
echo "Trying to compile $revision on $mydate" > $root/svninfo.txt | |
./configure --enable-maintainer-mode --prefix=$tree || { echo Configure failed! >&2 ; exit 1; } | |
make -j 3 || { echo Make failed! >&2 ; exit 1; } | |
make check 2>&1 | egrep -v "Making|^make|g\+\+|mv \-f|creating" > $root/makecheck.txt | |
make check 2>&1 || { cat $root/makecheck.txt >&2 ; echo Make check failed! >&2 ; exit 1 ; } | |
cd scripts/python | |
rm -rf build | |
python setup.py build || { echo Python build failed! >&2 ; exit 1; } | |
cd examples | |
export PYTHONPATH=../build/lib.linux-i686-2.4 | |
export LD_LIBRARY_PATH=$root/openbabel-trunk/src/.libs | |
python testpybel.py || { echo Pybel tests failed! >&2 ; exit 1; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment