Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 49 lines (41 sloc) 702 Bytes
#!/bin/sh
#
# CFG ORIGINAL FILE -- do not delete this line
#
# $Id$
CFG=cfg
if [ -f $CFG -a ! -w $CFG ]
then
echo "Not writing over cfg because it's read only."
exit 1
fi
if [ -f $CFG ]
then
grep "CFG ORIGINAL FILE" $CFG > /dev/null 2>&1
if [ $? -eq 0 ]
then
echo "Please run ./cfg in your build (and not your source!) directory."
exit 1
fi
fi
if [ -f $CFG ]
then
rm $CFG
fi
touch $CFG
if [ $DEBUG ]
then
echo "export DEBUG=$DEBUG" >> $CFG
fi
if [ "$CXX" ]
then
echo "export CXX='$CXX'" >> $CFG
fi
if [ "$CC" ]
then
echo "export CC='$CC'" >> $CFG
fi
CONFIGURE=`echo $0 | sed 's/cfg/configure/' `
echo "$CONFIGURE $*" >> $CFG
chmod u+x $CFG
sh -x $CFG
Something went wrong with that request. Please try again.