svn export from local directory with svn revision number

git-svn-id: trunk@19987 -
This commit is contained in:
mattias 2009-05-16 23:04:56 +00:00
parent 1e32f92f32
commit e4089e8358

View File

@ -24,19 +24,20 @@ rm -rf $TmpLazDir
if [ "x$Download" = "xyes" ]; then
echo "downloading lazarus svn ..."
mkdir -p $TmpLazDir
Revision=Exported
cd $TmpDir
svn export http://svn.freepascal.org/svn/lazarus/trunk $TmpLazDir
cd -
else
echo "extracting lazarus from local svn ..."
SourceDir=$(pwd | sed -e 's#lazarus[_0-9]*/tools.*$#lazarus#')
Revision=$(svnversion $SourceDir)
cd $TmpDir
svn export $SourceDir $TmpLazDir
cd -
fi
# add ide/revision.inc
Revision=$(svnversion $TmpLazDir)
echo "const RevisionStr = '$Revision';" > $TmpLazDir/ide/revision.inc
cd $TmpDir