Add initial git-svn support
This commit is contained in:
parent
9219849269
commit
9dbc50fb6f
15
update.sh
15
update.sh
|
@ -37,12 +37,23 @@ if [ ! $MSGINIT ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
SVN="$SVN co"
|
||||||
|
|
||||||
|
if [ $GIT ] && [ ! $GITSVN ]; then
|
||||||
|
echo -e "\E[31mgit-svn is unavailable. svn will be used."; tput sgr0
|
||||||
|
GIT=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $GIT ] && [ $GITSVN ]; then
|
||||||
|
SVN="$GITSVN clone"
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "Language: \E[31m$LCODE"; tput sgr0
|
echo -e "Language: \E[31m$LCODE"; tput sgr0
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ ! -z $TRUNK ]; then
|
if [ ! -z $TRUNK ]; then
|
||||||
echo -e "Updating repository: \E[34mtrunk"
|
echo -e "Updating repository: \E[34mtrunk"
|
||||||
$SVN co "$REPO/$TRUNK/po" $TRUNK
|
$SVN "$REPO/$TRUNK/po" $TRUNK
|
||||||
tput sgr0
|
tput sgr0
|
||||||
if [ ! -e "$PREFIX-$TRUNK" ]; then
|
if [ ! -e "$PREFIX-$TRUNK" ]; then
|
||||||
mkdir "$PREFIX-$TRUNK"
|
mkdir "$PREFIX-$TRUNK"
|
||||||
|
@ -51,7 +62,7 @@ fi
|
||||||
|
|
||||||
for BRANCH in $BRANCHES; do
|
for BRANCH in $BRANCHES; do
|
||||||
echo -e "Updating repository: \E[34m$BRANCH"
|
echo -e "Updating repository: \E[34m$BRANCH"
|
||||||
$SVN co "$REPO/branches/$BRANCH/po" $BRANCH
|
$SVN "$REPO/branches/$BRANCH/po" $BRANCH
|
||||||
tput sgr0
|
tput sgr0
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,11 @@ LCODE="lt" # Language code. Only 1 language is supported.
|
||||||
|
|
||||||
# Repositories
|
# Repositories
|
||||||
REPO="http://svn.gna.org/svn/wesnoth"
|
REPO="http://svn.gna.org/svn/wesnoth"
|
||||||
BRANCHES="1.4" # one or multiple branches separated by space. Can be blank.
|
BRANCHES="" # one or multiple branches separated by space. Can be blank.
|
||||||
TRUNK="" # "trunk" or ""
|
TRUNK="trunk" # "trunk" or ""
|
||||||
|
|
||||||
|
# Options
|
||||||
|
GIT=1 # Enable (1) or disable (0) git-svn
|
||||||
|
|
||||||
#Paths
|
#Paths
|
||||||
MDIR="mo"
|
MDIR="mo"
|
||||||
|
@ -35,3 +38,4 @@ ISUTF8=`which isutf8 2> /dev/null`
|
||||||
TAR=`which tar 2> /dev/null`
|
TAR=`which tar 2> /dev/null`
|
||||||
BZIP2=`which bzip2 2> /dev/null`
|
BZIP2=`which bzip2 2> /dev/null`
|
||||||
DIFF=`which diff 2> /dev/null`
|
DIFF=`which diff 2> /dev/null`
|
||||||
|
GITSVN=`which git-svn 2> /dev/null`
|
||||||
|
|
Loading…
Reference in New Issue