Here is the new script, I haven't tested it yet, but it should work.
----------------------------------------------------------
#!/bin/sh
#
# Filename: Build-e17.sh
# Version: 0.2.1
# Author: Jasper Lievisse Adriaanse, [EMAIL PROTECTED], copyright 2005, BSD-license.
# Thanks to those on [email protected] who helped me with this script, especially Benone Marcos.
#
# # General variables are specified below # # Flags for GCC, pleae specify your own. FLAGS="-O3 -march=pentium3" # 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
maak
}
# Start building the apps
apps() {
for X in iconbar entrance elicit e
do
echo $(date +%T) - Now building $X
cd $CVS_SRC/apps/$X
maak
}#Start the actual script ruimop welke libs apps
----------------------------------------------------------
[EMAIL PROTECTED] wrote:
There's a small bug in the script, if BUILD_DIR is the same directory as CVS_SRC, it will remove your freshly downloaded sources because of this line:
rm -rf $BUILD_DIR/*
please place a # in front of it, or use two different directories.
Jasper
... # gcc flags FLAGS="-O3 -march=pentium3"
-- added lines -- LDDFLAGS=-L$BUILD_DIR/lib CPPFLAGS=-L$BUILD_DIR/include -- added lines --
maak() { make distclean &> /dev/null
# configure, make, & install with logs ./autogen.sh --prefix=$BUILD_DIR LDFLAGS=$LDFLAGS CPPFLAGS=$CPPFLAGS &> $CVS_SRC/logs/$X.log ...
You could include cvs download before the building thing in that perl version :) btw, which distro you are using?
-- [ Benone Marcos ]
------------------------------------------------------- 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_ide95&alloc_id396&op=click
------------------------------------------------------- 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
