#!/bin/sh DEFCFLAGS="-O0 -ggdb3 -gstabs+ -Wall" MYCFLAGS=${CFLAGS:-$DEFCFLAGS} BUILD_PATH=`pwd` STOWDIR="/usr/local/stow" BERY_DIR="beryl-svn" DEFPREFIX="/usr/local/stow/beryl-svn" #DEFPREFIX=${STOWDIR:-$BERY_DIR} MYPREFIX=${PREFIX:-$DEFPREFIX} if svn up then ITEMS="bdock beryl-core beryl-plugins beryl-settings beryl-manager beryl-dbus beryl-settings-bindings emerald emerald-themes aquamarine" for item in $ITEMS do cd $item if ./autogen.sh --prefix=$MYPREFIX CFLAGS="$MYCFLAGS" && ([ "$item" == "aquamarine" ] && ./configure --prefix=$MYPREFIX CFLAGS="$MYCFLAGS" || true) && make && sudo make install && cd $STOWDIR && sudo stow $BERY_DIR && cd $BUILD_PATH && cd $item then cd ../ echo $item built ok else cd ../ echo BUILD FAILED for $item exit 1 fi done else echo SVN UP FAILED. exit 1 fi