mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-25 21:48:18 +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
@ -58,7 +58,8 @@ if [ "$WithTempDir" = "yes" ]; then
|
|||||||
mkdir -p $TmpDir
|
mkdir -p $TmpDir
|
||||||
|
|
||||||
echo "extracting FPC from local svn ..."
|
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
|
else
|
||||||
TmpDir=$FPCSrcDir
|
TmpDir=$FPCSrcDir
|
||||||
fi
|
fi
|
||||||
|
@ -73,6 +73,8 @@ if [ "x$Download" = "xyes" ]; then
|
|||||||
Revision=Exported
|
Revision=Exported
|
||||||
cd $TmpDir
|
cd $TmpDir
|
||||||
svn export http://svn.freepascal.org/svn/lazarus/trunk $TmpLazDir
|
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 -
|
cd -
|
||||||
else
|
else
|
||||||
echo "extracting lazarus from local svn ..."
|
echo "extracting lazarus from local svn ..."
|
||||||
@ -80,7 +82,8 @@ else
|
|||||||
#Revision=$(svnversion $LazSrcDir) - comment this out as svn no longer works
|
#Revision=$(svnversion $LazSrcDir) - comment this out as svn no longer works
|
||||||
Revision=$(git -C $LazSrcDir describe --always --first-parent)
|
Revision=$(git -C $LazSrcDir describe --always --first-parent)
|
||||||
cd $TmpDir
|
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 -
|
cd -
|
||||||
if [ "$UseCHMHelp" = "1" ]; then
|
if [ "$UseCHMHelp" = "1" ]; then
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user