Create fpc folder for git working tree. Copy .git from source.

This commit is contained in:
John Shand 2021-11-06 08:31:53 +00:00 committed by Martin
parent 9ba3e061c3
commit 5d482579e7

View File

@ -55,10 +55,9 @@ if [ "$WithTempDir" = "yes" ]; then
if [ -d $TmpDir ]; then
rm -rf $TmpDir
fi
mkdir -p $TmpDir
mkdir -p $TmpDir/fpc
echo "extracting FPC from local svn ..."
# cp -a $FPCSrcDir $TmpDir/fpc #copies all to tmp folder for patching.
echo "extracting FPC from local git ..."
git -C $FPCSrcDir --work-tree=$TmpDir/fpc restore .
else
TmpDir=$FPCSrcDir