-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathremake.sh
executable file
·21 lines (17 loc) · 1.01 KB
/
remake.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Assumes deployed server environment and produces debug info for coredumps.
# Does EVERY step to re-build C-server and restart freeciv-web.
# Use ./remake-nodebug.sh for no debug/coredump make.
printf "\n*********************************************************************\n"
printf "./remake.sh: DEPLOYED SERVER version. Re-builds server executables.\n"
printf "* Use ../freeciv/./prepare.sh for complete rebuild.\n"
printf "***********************************************************************\n"
printf "Remake scripts for other contexts:"
printf "Use ./remake-nodebug.sh to suppress debug/coredump make.\n"
printf "Use ./vremake.sh for Vagrant installations.\n"
printf "Use ./remakem.sh for Multipass installations.\n"
printf "***********************************************************************\n"
CFLAGS="-g"
cd ~/freeciv-web/freeciv && ./prepare_freeciv.sh && cd build && make install && cd ../../scripts && ./stop-freeciv-web.sh && ./start-freeciv-web.sh
# let user know when it's finished
echo $'\a'