forked from gisgraphy/gisgraphy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.sh
More file actions
executable file
·22 lines (19 loc) · 731 Bytes
/
Copy pathsite.sh
File metadata and controls
executable file
·22 lines (19 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
cd src/skin
mvn clean install
cd ../../
cd `dirname ${BASH_SOURCE[0]}`
curDir=`pwd`
if [[ -e ../extra/delete.sh ]]
then
cd ../extra/
./delete.sh
cd $curDir
fi
mvn clean site -Dmaven.test.skip -Dresetdb=false -fae -Ddependency.locations.enabled=false
mv target/site/index.html target/site/index_old.html
grep "end header" target/site/index_old.html -B 9999 > target/site/include/header.inc
grep "start footer" target/site/index_old.html -A 9999 > target/site/include/footer.inc
sed 's/gisgraphy - About/Free Open source Geocoder via REST webservices (for geonames and openstreetmap data)/g' target/site/include/header.inc > header.inc
mv header.inc target/site/include/header.inc
rm -rf target/site/index_old.html