updating the site files

This commit is contained in:
Pavol Zibrita 2011-08-29 03:13:59 +02:00
parent 1bd9cdbe8f
commit 033e0393f4
2 changed files with 12 additions and 1 deletions

View file

@ -27,4 +27,5 @@ git pull --rebase 2>&1 >>$LOG_FILE
# 4. Synchronize github with googlecode mercurial
"${DIRECTORY}/sync_git_google.sh" 2>&1 >>$LOG_FILE
# 5. update site files
"${DIRECTORY}/update_site.sh" 2>&1 >>$LOG_FILE

10
build-scripts/update_site.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
GIT_SITE_DIR=$DIRECTORY/osmand-git/config/site
LOCAL_SITE_DIR=/var/www-download
files='*.php tile_sources.xml favicon.ico'
for f in $files ; do
cp $GIT_SITE_DIR/$f $LOCAL_SITE_DIR/ -u;
done