Just found another problem. You have to call ruimop() after welke()
otherwise $CVS_SRC doesn't have a value. This is how I have it looking
so far and I'm just about to test it...
#!/bin/sh
#
# General variables are specified below
#
# Flags for GCC, pleae specify your own.
FLAGS="-O3"
# Flags for
LDDFLAGS=-L$BUILD_DIR/lib
CPPFLAGS=-L$BUILD_DIR/include
# This function will do the actual configuring, compiling and installing.
maak(){
make distclean &> /dev/null
# configure, make, & install with reporting to logfiles
./autogen.sh --prefix=$BUILD_DIR LDFLAGS=$LDFLAGS CPPFLAGS=$CPPFLAGS
&> $CVS_SRC/logs/$X.log
make -j2 CFLAGS="$FLAGS" &> cat >> $CVS_SRC/logs/$X.log
make install &> /dev/null
if [ $(grep -c Error $CVS_SRC/logs/$X.log) != 0 ]; then
echo "Compile failed, please see the logs for more information"
fi
}
# Ruimop() will remove old logs and make a new dir the this build.
ruimop() {
echo "Removing left-overs and old stuff"
#rm -rf $BUILD_DIR/*
rm -rf $CVS_SRC/logs
mkdir $CVS_SRC/logs
}
# Here the two most important variables will be promted for.
welke(){
echo "What shall be the building directory? [Please specify one,
e.g.:/usr/local/e17]"
# Where the CVS directory is, the e17 of cvs must be included
read BUILD_DIR
echo "Where are E17's sources, taken from CVS? [Please specify one,
e.g.:/usr/local/src/e17]"
# Where the CVS directory is, the e17 of cvs must be included
read CVS_SRC
if [ $BUILD_DIR == $CVS_SRC ]; then
echo "Please do not use the source directory as the building directory"
exit
fi
}
# Start building the libraries
libs() {
for X in imlib2 edb eet evas ecore epeg epsilon embryo edje esmart
emotion etox ewl
do
echo $(date +%T) - Now building $X
cd $CVS_SRC/libs/$X
#touch $CVS_SRC/logs/$X.log
maak
done
}
# Start building the apps
apps() {
for X in iconbar entrance elicit e
do
echo $(date +%T) - Now building $X
cd $CVS_SRC/apps/$X
#touch $CVS_SRC/logs/$X.log
maak
done
}
#Start the actual script
welke
ruimop
libs
apps
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users