2010-05-06 00:08:41 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
|
2010-05-11 14:02:53 +00:00
|
|
|
#export RYZOM_PATH="$HOME/code/ryzom"
|
|
|
|
|
|
|
|
if [ X"$RYZOM_PATH" = "X" ]
|
|
|
|
then
|
|
|
|
echo Error: You need to setup \$RYZOM_PATH environement variable with the path where the ryzom code is
|
|
|
|
echo For example: export RYZOM_PATH=\"/home/user/code/ryzom\"
|
|
|
|
exit
|
|
|
|
fi
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
. $RYZOM_PATH/tools/scripts/linux/utilities
|
|
|
|
|
|
|
|
init
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
#### BUILD NEL
|
|
|
|
##############################################################################
|
|
|
|
|
2010-05-17 10:02:21 +00:00
|
|
|
$RYZOM_PATH/tools/scripts/linux/build init nel --disable-3d --disable-samples --disable-tools >>$LOG_INFO 2>>$LOG_ERROR
|
2010-05-06 00:08:41 +00:00
|
|
|
verify $? BUILD INIT NEL
|
|
|
|
|
|
|
|
#$RYZOM_PATH/tools/scripts/linux/build nel clean
|
|
|
|
#verify $? BUILD NEL CLEAN
|
|
|
|
|
|
|
|
$RYZOM_PATH/tools/scripts/linux/build nel >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
verify $? BUILD NEL
|
|
|
|
|
|
|
|
$RYZOM_PATH/tools/scripts/linux/build nel install >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
verify $? BUILD NEL INSTALL
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
#### BUILD NELNS
|
|
|
|
##############################################################################
|
2010-05-17 10:02:21 +00:00
|
|
|
# update: we don't need nelns to run a ryzom shard
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-05-17 10:02:21 +00:00
|
|
|
#$RYZOM_PATH/tools/scripts/linux/build init nelns >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
#verify $? BUILD INIT NELNS
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
#$RYZOM_PATH/tools/scripts/linux/build nelns clean
|
|
|
|
#verify $? BUILD NEL CLEAN
|
|
|
|
|
2010-05-17 10:02:21 +00:00
|
|
|
#$RYZOM_PATH/tools/scripts/linux/build nelns >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
#verify $? BUILD NELNS
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-05-17 10:02:21 +00:00
|
|
|
#$RYZOM_PATH/tools/scripts/linux/build nelns install >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
#verify $? BUILD NELNS INSTALL
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
##### CLEAR packed_sheet (rebuilt in Ryzom build)
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
rm $RYZOM_PATH/server/src/*/*.packed_sheets
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
#### BUILD RYZOM COMMON
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
cd $RYZOM_PATH/common
|
|
|
|
|
|
|
|
#make clean >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
#verify $? CLEAN RYZOM COMMON
|
|
|
|
|
|
|
|
make update >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
verify $? UPDATE RYZOM MAKEFILE COMMON
|
|
|
|
|
2010-05-17 10:02:21 +00:00
|
|
|
make night >>$LOG_INFO 2>>$LOG_ERROR
|
2010-05-06 00:08:41 +00:00
|
|
|
verify $? BUILD RYZOM COMMON
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
#### BUILD RYZOM
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
cd $RYZOM_PATH/server
|
|
|
|
|
|
|
|
#make clean >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
#verify $? CLEAN RYZOM
|
|
|
|
|
|
|
|
make update >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
verify $? UPDATE RYZOM MAKEFILE
|
|
|
|
|
|
|
|
CFLAGS="-DFINAL_VERSION=1" CXXFLAGS="-DFINAL_VERSION=1" make night >>$LOG_INFO 2>>$LOG_ERROR
|
|
|
|
verify $? BUILD RYZOM
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
##### copy translation file from tools/translation
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
#cp -a $RYZOM_PATH/tools/translation/translated/*.txt $RYZOM_PATH/server/data_shard/language/
|