mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 17:29:27 +02:00
Build scripts: GIT // git clone --depth=1 => "git describe" does not work, as no history is cloned / maybe clone the entire branch or at least depth 10000 on one single branch
This commit is contained in:
parent
05fdc3f8f3
commit
f81cc24f83
tools/install
@ -58,7 +58,8 @@ if [ "$WithTempDir" = "yes" ]; then
|
||||
mkdir -p $TmpDir
|
||||
|
||||
echo "extracting FPC from local svn ..."
|
||||
cp -a $FPCSrcDir $TmpDir/fpc #copies all to tmp folder for patching.
|
||||
# cp -a $FPCSrcDir $TmpDir/fpc #copies all to tmp folder for patching.
|
||||
git -C $FPCSrcDir --work-tree=$TmpDir/fpc restore .
|
||||
else
|
||||
TmpDir=$FPCSrcDir
|
||||
fi
|
||||
|
@ -73,6 +73,8 @@ if [ "x$Download" = "xyes" ]; then
|
||||
Revision=Exported
|
||||
cd $TmpDir
|
||||
svn export http://svn.freepascal.org/svn/lazarus/trunk $TmpLazDir
|
||||
# git clone --depth=1 https://gitlab.com/freepascal.org/lazarus/lazarus.git $TmpLazDir
|
||||
# rm -rf $TmpLazDir/.git
|
||||
cd -
|
||||
else
|
||||
echo "extracting lazarus from local svn ..."
|
||||
@ -80,7 +82,8 @@ else
|
||||
#Revision=$(svnversion $LazSrcDir) - comment this out as svn no longer works
|
||||
Revision=$(git -C $LazSrcDir describe --always --first-parent)
|
||||
cd $TmpDir
|
||||
cp -a $LazSrcDir $TmpLazDir #can't use svn export anymore
|
||||
# cp -a $LazSrcDir $TmpLazDir #can't use svn export anymore
|
||||
git -C $LazSrcDir --work-tree=$TmpLazDir restore .
|
||||
cd -
|
||||
if [ "$UseCHMHelp" = "1" ]; then
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user