Add initial git-svn support

This commit is contained in:
Andrius Štikonas 2008-09-18 16:06:21 +03:00
父節點 9219849269
當前提交 9dbc50fb6f
共有 2 個文件被更改,包括 19 次插入4 次删除

查看文件

@ -37,12 +37,23 @@ if [ ! $MSGINIT ]; then
exit 1
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 ""
if [ ! -z $TRUNK ]; then
echo -e "Updating repository: \E[34mtrunk"
$SVN co "$REPO/$TRUNK/po" $TRUNK
$SVN "$REPO/$TRUNK/po" $TRUNK
tput sgr0
if [ ! -e "$PREFIX-$TRUNK" ]; then
mkdir "$PREFIX-$TRUNK"
@ -51,7 +62,7 @@ fi
for BRANCH in $BRANCHES; do
echo -e "Updating repository: \E[34m$BRANCH"
$SVN co "$REPO/branches/$BRANCH/po" $BRANCH
$SVN "$REPO/branches/$BRANCH/po" $BRANCH
tput sgr0
done

查看文件

@ -19,8 +19,11 @@ LCODE="lt" # Language code. Only 1 language is supported.
# Repositories
REPO="http://svn.gna.org/svn/wesnoth"
BRANCHES="1.4" # one or multiple branches separated by space. Can be blank.
TRUNK="" # "trunk" or ""
BRANCHES="" # one or multiple branches separated by space. Can be blank.
TRUNK="trunk" # "trunk" or ""
# Options
GIT=1 # Enable (1) or disable (0) git-svn
#Paths
MDIR="mo"
@ -35,3 +38,4 @@ ISUTF8=`which isutf8 2> /dev/null`
TAR=`which tar 2> /dev/null`
BZIP2=`which bzip2 2> /dev/null`
DIFF=`which diff 2> /dev/null`
GITSVN=`which git-svn 2> /dev/null`