Git-svn support moved to git-support branch.

This commit is contained in:
Andrius Štikonas 2008-11-12 00:40:34 +02:00
parent 0cfa3d497b
commit baf9ae3215
2 changed files with 8 additions and 37 deletions

View File

@ -37,36 +37,18 @@ if [ ! $MSGINIT ]; then
exit 1
fi
if [ $GIT -eq 1 ] && [ ! $GITSVN ]; then
echo -e $RED"git-svn is unavailable. svn will be used."$ENDCOLOR
GIT=0
fi
if [ $GIT -eq 1 ] && [ $GITSVN ]; then
SVN="$GITSVN clone"
fi
echo -e "Language: $RED$LCODE"$ENDCOLOR
echo ""
if [ ! -z $TRUNK ]; then
if [ -e $TRUNK/.git ] || [ -e $TRUNK/.svn ]; then
if [ -e $TRUNK/.svn ]; then
echo -e "Updating repository: "$BLUE"trunk"
cd $TRUNK
if [ $GIT -eq 1 ]; then
$GITSVN rebase
else
$SVN update
fi
$SVN update
cd ..
else
echo -e "Downloading repository: "$BLUE"trunk"
if [ $GIT -eq 1 ]; then
SVN="$GITSVN clone"
else
SVN="$SVN checkout"
fi
$SVN "$REPO/$TRUNK/po" $TRUNK
echo -e "Checking out repository: "$BLUE"trunk"
$SVN checkout "$REPO/$TRUNK/po" $TRUNK
fi
tput sgr0
if [ ! -e "$PREFIX-$TRUNK" ]; then
@ -75,23 +57,14 @@ if [ ! -z $TRUNK ]; then
fi
for BRANCH in $BRANCHES; do
if [ -e $BRANCH/.git ] || [ -e $BRANCH/.svn ]; then
if [ -e $BRANCH/.svn ]; then
echo -e "Updating repository: $BLUE$BRANCH"
cd $BRANCH
if [ $GIT -eq 1 ]; then
$GITSVN rebase
else
$SVN update
fi
$SVN update
cd ..
else
echo -e "Downloading repository: $BLUE$BRANCH"
if [ $GIT -eq 1 ]; then
SVN="$GITSVN clone"
else
SVN="$SVN checkout"
fi
$SVN "$REPO/branches/$BRANCH/po" $BRANCH
echo -e "Checking out repository: $BLUE$BRANCH"
$SVN checkout "$REPO/branches/$BRANCH/po" $BRANCH
fi
tput sgr0
if [ ! -e "$PREFIX-$BRANCH" ]; then

View File

@ -22,7 +22,6 @@ TRUNK="trunk" # "trunk" or ""
# Options
LCODE="lt" # Language code. Only 1 language is supported.
GIT=0 # Enable (1) or disable (0) git-svn.
#Paths
MDIR="mo"
@ -37,7 +36,6 @@ 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`
#Colors
RED="\033[0;31m"