Jump to content

Useful build "helper" if you are lazy just like me..xD


Guest Ezrekith

Recommended Posts

Guest Ezrekith

Go to your server src root folder

create a file called build or anything you like

paste this in it:

echo -e "\033[31m  
What would you like to build? \n 
1 - game only\n 
2 - database only\n 
3 - both\n
\033[0m"

read imfuckinglazy

case $imfuckinglazy in 
1*) 
	cd /Server/game/src && gmake clean
	cd /Server/game/src && gmake
	echo -e "\033[31m \n done\033[0m"
;;
2*)
	cd /Server/db/src && gmake clean
	cd /Server/db/src && gmake
	echo -e "\033[31m \n done\033[0m"
;;
3*)
	cd /Server/game/src && gmake clean
	cd /Server/game/src && gmake
	cd /Server/db/src && gmake clean
	cd /Server/db/src && gmake
	echo -e "\033[31m \n done\033[0m"
;;
esac

CHANGE THE FOLDERS TO YOUR SERVER SRC FOLDER!!!!!!
 

Usage:

in my case:

cd /Server/

sh build

IN YOUR CASE:

cd /CALL YOUR FOLDER

sh YOURFILENAME

Edited by Ezrekith
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...