made get_lazarus_revision.sh more generic

git-svn-id: trunk@11497 -
This commit is contained in:
mattias 2007-07-13 21:09:35 +00:00
parent e2425ce469
commit 5e89f20772
2 changed files with 5 additions and 7 deletions

View File

@ -19,7 +19,10 @@ fi
LazVersionPostfix=
if [ "$1" = "append-revision" ]; then
LazVersionPostfix=.$(./get_lazarus_revision.sh | sed -e 's/[^0-9]//')
LazVersionPostfix=$(./get_lazarus_revision.sh .)
if [ -n "$LazVersionPostfix" ]; then
LazVersionPostfix=.$LazVersionPostfix
fi
shift
fi

View File

@ -1,11 +1,6 @@
#!/usr/bin/env bash
if [ ! -f ../svn2revisioninc ]; then
make -C ../../lcl
make -C ..
fi
../svn2revisioninc -s
echo $(svnversion $1 | sed -e 's/\([0-9]*\).*/\1/')
# end.