#!/usr/bin/tcsh -f set symlinks=expand module purge # Hier kann man Module laden, die das Programm benötigt # module add zlib libpng-1.2 ... set PLATFORM=`/software/Modules/bin/platform` set DIR=`pwd` set PKG=$DIR:t # Falls das Programmpaket dies unterstützt, kann man für mehrere # Platformen gleichzeitig übersetzen. mkdir -p $PLATFORM/objs cd $PLATFORM/objs make distclean $DIR/src/configure --prefix=$DIR --exec-prefix=$DIR/$PLATFORM --disable-rpath |& tee /tmp/$PKG-conf.$$ make |& tee /tmp/$PKG-comp.$$ if ( $? == 0 ) then make check |& tee /tmp/$PKG-check.$$ if ( $? == 0 ) then make install |& tee /tmp/$PKG-inst.$$ if ( -d $DIR/include ) then ln -s $DIR/include $DIR/$PLATFORM/include endif endif endif