OsmAnd/build-scripts/update_site.sh
2012-01-14 00:25:00 +01:00

16 lines
440 B
Bash
Executable file

#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
GIT_SITE_DIR=$DIRECTORY/../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
mkdir -p $LOCAL_SITE_DIR/resource;
cp $GIT_SITE_DIR/resource/* $LOCAL_SITE_DIR/resource/ -u;
mkdir -p $LOCAL_SITE_DIR/GoogleAnalytics;
cp $GIT_SITE_DIR/GoogleAnalytics/* $LOCAL_SITE_DIR/GoogleAnalytics/ -u;