Adrian Schröter 2010-12-08 07:59:43 +00:00 committed by Git OBS Bridge
parent 3f9aafed0e
commit 6a86f71ba6

View File

@ -137,7 +137,7 @@ if [ "$MYSCM" == "svn" ]; then
if [ -z "$VERSION" ]; then
cd "$FILE"
[ -n "$MYPREFIX" ] && MYPREFIX="$MYPREFIX.rev"
VERSION=$MYPREFIX`LC_ALL=C svn info | sed -n 's,^Last Changed Rev: \(.*\),\1,p'`
VERSION="$MYPREFIX"`LC_ALL=C svn info | sed -n 's,^Last Changed Rev: \(.*\),\1,p'`
cd -
fi
elif [ "$MYSCM" == "git" ]; then
@ -169,7 +169,7 @@ elif [ "$MYSCM" == "git" ]; then
if [ -z "$VERSION" ]; then
cd "$FILE"
[ -n "$MYPREFIX" ] && MYPREFIX="$MYPREFIX."
VERSION=$MYPREFIX`git show --pretty=%at | head -n 1`
VERSION="$MYPREFIX"`git show --pretty=%at | head -n 1`
cd -
fi
elif [ "$MYSCM" == "hg" ]; then
@ -201,7 +201,7 @@ elif [ "$MYSCM" == "hg" ]; then
if [ -z "$VERSION" ]; then
cd "$FILE"
[ -n "$MYPREFIX" ] && MYPREFIX="$MYPREFIX."
VERSION=$MYPREFIX`hg tip | head -n 1 | sed -e 's/\s*//g' | awk -F':' '{ print $2 }'`
VERSION="$MYPREFIX"`hg tip | head -n 1 | sed -e 's/\s*//g' | awk -F':' '{ print $2 }'`
cd -
fi
else