[Crossfire-wiki] [Crossfire DokuWiki] page changed: crossfire_compile_guide_script
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Fri Jun 10 17:38:07 CDT 2011
A page in your DokuWiki was added or changed. Here are the details:
Date : 2011/06/10 17:38
User : meflin
Edit Summary:
@@ -8,9 +8,9 @@
}
checkout_or_up() {
if [[ ! -d "${1}.svn" ]]; then
- svn co https://crossfire.svn.sourceforge.net/svnroot/crossfire/"$1"/trunk "${1}.svn"
+ svn co https://crossfire.svn.sourceforge.net/svnroot/crossfire/"${1}"/trunk "${1}.svn"
else
( cd "${1}.svn" && svn up )
fi
}
@@ -23,35 +23,34 @@
checkout_or_up maps || die "Checkout maps failed"
cd server.svn/ || die "Couldn't change directory to server.svn"
#patch -R -p0 -i ../automess.patch
- [[ -e /usr/games/crossfire ]] || ( echo "/usr/games/crossfire does not exsist create this directory and make sure it is owned by this user as root" &&\
+ [[ -d /usr/games/crossfire ]] || ( echo "/usr/games/crossfire does not exist create this directory and make sure it is owned by this user as root" &&\
echo " mkdir -p /usr/games/crossfire && chown "`whoami`"."`whoami`" /usr/games/crossfire/" && echo "" &&\
echo "If you want server loging run this command as root" &&\
echo " mkdir -p /var/log/crossfire && chown "`whoami`"."`whoami`" /var/log/crossfire/" && echo "" &&\
echo "when this is done re-run his script" )
- [[ -e /usr/games/crossfire ]] || exit 1
+ [[ -d /usr/games/crossfire ]] || exit 1
- [[ -e lib/arch ]] || (cd lib && ln -s ../../arch.svn arch )
- [[ -e maps ]] || ( ln -s ../maps.svn maps )
- [[ -e /usr/games/crossfire/share/crossfire ]] || ( mkdir -p /usr/games/crossfire/share/crossfire )
- [[ -e /usr/games/crossfire/share/crossfire/maps ]] || ( ln -s ~//maps.svn /usr/games/crossfire/share/crossfire/maps )
+ [[ -d lib/arch ]] || (cd lib && ln -s ../../arch.svn arch )
+ [[ -d maps ]] || ( ln -s ../maps.svn maps )
+ [[ -d /usr/games/crossfire/share/crossfire ]] || ( mkdir -p /usr/games/crossfire/share/crossfire )
+ [[ -d /usr/games/crossfire/share/crossfire/maps ]] || ( ln -s ~/maps.svn /usr/games/crossfire/share/crossfire/maps )
- [[ -e macros/libtool.m4 ]] || ( bash autogen.sh )
- ##uncoment if you are using a special build of automes like required on centos5
- #[[ -f macros/libtool.m4 ]] || cp /usr/share/aclocal/libtool.m4 macros/
- #/usr/local/bin/autoreconf --install || die "Autoreconf failed"
- autoreconf --install || die "Autoreconf failed"
- [[ -f Makefile ]] && make distclean
- #export CFLAGS=-DEXP_DEBUG
- ./configure || die "Configure failed"
- cd lib || die "Couldn't change directory to lib"
- make collect || die "Make collect failed"
- cd .. || die "Couldn't change directory to back up from lib"
- nice -n 19 make -j 4 || die "Server compile failed"
-
- #Uncomment if you want to save old servers for debuging core files
+ [[ -e macros/libtool.m4 ]] || ( bash autogen.sh )
+ ##uncoment if you are using a special build of automes like required on centos5
+ #[[ -f macros/libtool.m4 ]] || cp /usr/share/aclocal/libtool.m4 macros/
+ #/usr/local/bin/autoreconf --install || die "Autoreconf failed"
+ autoreconf --install || die "Autoreconf failed"
+ [[ -f Makefile ]] && make distclean
+ #export CFLAGS=-DEXP_DEBUG
+ ./configure || die "Configure failed"
+ cd lib || die "Couldn't change directory to lib"
+ make collect || die "Make collect failed"
+ cd .. || die "Couldn't change directory to back up from lib"
+ nice -n 19 make -j 4 || die "Server compile failed"
+
cp /usr/games/crossfire/bin/crossfire-server /usr/games/crossfire/bin/`date +%F`-crossfire-server
make install || die "Make install failed"
make check
#remove varios things here
@@ -67,5 +66,6 @@
ps -ef | grep crossfire
echo $'\a \a'
+
</code>
IP-Address : 107.2.148.83
Old Revision: http://wiki.metalforge.net/doku.php/crossfire_compile_guide_script?rev=1307742355
New Revision: http://wiki.metalforge.net/doku.php/crossfire_compile_guide_script
--
This mail was generated by DokuWiki at
http://wiki.metalforge.net/
More information about the crossfire-wiki
mailing list