remove the man pages after install
This commit is contained in:
parent
c6a6cd0a0f
commit
ebba6f469e
1 changed files with 10 additions and 7 deletions
|
@ -7,7 +7,6 @@ fi
|
|||
|
||||
SERVER=$1
|
||||
SERVERBASE=$HOME/servers/$SERVER
|
||||
BUILD=$HOME/servers/builds
|
||||
SOURCE=$HOME/source
|
||||
SOCKET=$SERVERBASE/build/var/run/socket
|
||||
|
||||
|
@ -52,18 +51,19 @@ fi
|
|||
# reminder for local changes
|
||||
#svn status
|
||||
DIR=wesnothd-svn-${rev}_$SERVER
|
||||
mkdir -p $BUILD/$DIR
|
||||
BUILD=$HOME/servers/builds/$DIR
|
||||
mkdir -p $BUILD
|
||||
|
||||
if [ "$SCONS" == "yes" ]; then
|
||||
mkdir -p $BUILD/$DIR/var/run
|
||||
mkdir -p $BUILD/var/run
|
||||
# need to remove .scons-option-cache when parameters get removed!
|
||||
scons install-wesnothd prefix=$BUILD/$DIR fifodir=$BUILD/$DIR/var/run boostdir=$HOME/tools/include boostlibdir=$HOME/tools/lib boost_suffix=-mt raw_sockets=1 profile=1 fribidi=0 python=0 localedir= prefsdir= | tee $BUILD/$DIR/scons.log || exit 1
|
||||
scons install-wesnothd prefix=$BUILD fifodir=$BUILD/var/run boostdir=$HOME/tools/include boostlibdir=$HOME/tools/lib boost_suffix=-mt raw_sockets=1 profile=1 fribidi=0 python=0 localedir= prefsdir= | tee $BUILD/scons.log || exit 1
|
||||
echo "adding '$SERVER' suffix..."
|
||||
mv $BUILD/$DIR/bin/wesnothd $BUILD/$DIR/bin/wesnothd-$SERVER || exit 1
|
||||
mv $BUILD/bin/wesnothd $BUILD/bin/wesnothd-$SERVER || exit 1
|
||||
else
|
||||
echo 'autogen.sh and configure...'
|
||||
./autogen.sh > $BUILD/$DIR/autogen.log
|
||||
./configure --prefix=$BUILD/$DIR --program-suffix=-$SERVER --enable-server --enable-raw-sockets --disable-game --with-fifodir=$BUILD/$DIR/var/run --disable-nls --enable-lite --enable-profile --with-boost=$HOME/tools > $BUILD/$DIR/configure.log CXXFLAGS=$CXXFLAGS LDFLAGS=$LDFLAGS || exit 1
|
||||
./autogen.sh > $BUILD/autogen.log
|
||||
./configure --prefix=$BUILD --program-suffix=-$SERVER --enable-server --enable-raw-sockets --disable-game --with-fifodir=$BUILD/var/run --disable-nls --enable-lite --enable-profile --with-boost=$HOME/tools > $BUILD/configure.log CXXFLAGS=$CXXFLAGS LDFLAGS=$LDFLAGS || exit 1
|
||||
make clean > /dev/null
|
||||
|
||||
echo 'make...'
|
||||
|
@ -72,6 +72,9 @@ else
|
|||
make install > $BUILD/$DIR/install.log || exit 1
|
||||
fi
|
||||
|
||||
# remove the man pages
|
||||
rm -rf $BUILD/share/
|
||||
|
||||
cd $SERVERBASE
|
||||
if [ -p $SOCKET ]; then
|
||||
rm -f oldbuild
|
||||
|
|
Loading…
Add table
Reference in a new issue