2011-01-23 12:45:18 +01:00
|
|
|
#!/bin/sh
|
|
|
|
DIRECTORY=$(cd `dirname $0` && pwd)
|
|
|
|
|
|
|
|
GIT_DIR="$DIRECTORY"/osmand-git
|
|
|
|
GIT_URL=git://github.com/osmandapp/Osmand.git
|
|
|
|
GIT_ORIGIN_NAME=origin
|
|
|
|
HG_DIR="$DIRECTORY"/osmand-hg
|
|
|
|
HG_URL=https://osmand.googlecode.com/hg
|
|
|
|
BUILD_DIR="$DIRECTORY"/builds
|
|
|
|
|
|
|
|
if [ ! -d "$HG_DIR" ]; then
|
|
|
|
hg clone ${GIT_URL} "${HG_DIR}"
|
|
|
|
fi
|
|
|
|
cd "${HG_DIR}"
|
2011-07-03 12:10:25 +02:00
|
|
|
# hg pull -r master "${GIT_URL}" # ambigious master
|
|
|
|
hg pull "${GIT_URL}"
|
2011-01-23 13:26:09 +01:00
|
|
|
hg update -c
|
|
|
|
# First time add entries to .hgrc (!)
|
|
|
|
# [paths]
|
|
|
|
# default = git://github.com/osmandapp/Osmand.git
|
|
|
|
# googlecode = https://username:password@osmand.googlecode.com/hg
|
2011-02-02 21:42:52 +01:00
|
|
|
hg push -f googlecode
|
2011-01-23 12:45:18 +01:00
|
|
|
|
|
|
|
echo "Synchronization is ok"
|
|
|
|
|