
--Upd Makefiles and configure --Upd shell scripts and remove old unmaintenained one. -Upd tools/config.pl, add FreeBSD install package support git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17181 54d463be-8e91-2dee-dedb-b68131a5f0ec
27 lines
572 B
Bash
Executable File
27 lines
572 B
Bash
Executable File
L_SRV=login-server_sql
|
|
C_SRV=char-server_sql
|
|
M_SRV=map-server_sql
|
|
INST_PATH=/opt
|
|
PKG=rathena
|
|
PKG_PATH=$INST_PATH/$PKG
|
|
|
|
check_files() {
|
|
for i in ${L_SRV} ${C_SRV} ${M_SRV}
|
|
do
|
|
if [ ! -f ./$i ]; then
|
|
echo "$i does not exist extiting"
|
|
exit 1;
|
|
fi
|
|
done
|
|
}
|
|
|
|
check_inst_right(){
|
|
if [ ! -w $INST_PATH ]; then echo "You must have sudo right to use this install (writte/read permission in /opt/ )" && exit; fi
|
|
}
|
|
|
|
inst_launch_workaround(){
|
|
if [ -d $PKG_PATH ]; then
|
|
if [ $(pwd) != $PKG_PATH ]; then cd $PKG_PATH; fi
|
|
fi
|
|
}
|