forked from Lexxie9952/fcw.org-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvbuild-all-rules.sh
30 lines (24 loc) · 1.26 KB
/
vbuild-all-rules.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# builds Freeciv-web, copies the war file to Tomcat and builds the selected rulesets.
RULESETS=(mp2-dragoon mp2-caravel mp2-brava mpplus classic civ2civ3 multiplayer civ1 civ2 ag mp2 sandbox webperimental experimental)
TOPDIR="$( cd ../"$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"
printf "\nThis script may solve issues with Game Manual generation for vagrant users.\n"
printf "\nUpdating rulesets\n"
for r in ${RULESETS[@]}; do
echo "Copying $r"
bash ../scripts/copy-ruleset.sh $r
done
printf "\nRe-generating manuals\n"
cd src/derived/webapp/man
for r in ${RULESETS[@]}; do
printf "\n"
echo "Generating help manual for $r"
${HOME}/freeciv/bin/freeciv-manual -r $r
printf "*************************************************************\n"
done
# Vagrant install needs to copy these files into the tomcat webapp
printf "\nCopying to Tomcat webapp\n"
cp /vagrant/freeciv-web/src/derived/webapp/man/*.* /var/lib/tomcat8/webapps/freeciv-web/man/
printf "\n\n****** REMINDER: ************************************************************\n"
printf "(1) ./vclean-rules.sh is required to fix custom .html files that were overwritten.\n"
printf "(2) run ./build.sh to refresh and activate the new manuals.\n"