mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 12:19:26 +02:00
deb: building with a git repo
This commit is contained in:
parent
ed1805b1ac
commit
1e22686cfe
@ -75,7 +75,7 @@ while [ $# -gt 0 ]; do
|
|||||||
|
|
||||||
*)
|
*)
|
||||||
echo "invalid parameter $1"
|
echo "invalid parameter $1"
|
||||||
echo "Usage: ./create_lazarus_deb.sh [chmhelp] [gtk1] [qt] [qtlib=<dir>] [release=svn] "
|
echo "Usage: ./create_lazarus_deb.sh [chmhelp] [gtk1] [qt] [qtlib=<dir>] [release=YourPostfix] "
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -137,7 +137,7 @@ echo "LazVersion=$LazVersion"
|
|||||||
echo "FPCVersion=$FPCVersion"
|
echo "FPCVersion=$FPCVersion"
|
||||||
echo "ChangeLogDate=$ChangeLogDate"
|
echo "ChangeLogDate=$ChangeLogDate"
|
||||||
|
|
||||||
# download/export lazarus svn if needed
|
# download/export lazarus git if needed
|
||||||
if [ ! -f $SrcTGZ ]; then
|
if [ ! -f $SrcTGZ ]; then
|
||||||
./create_lazarus_export_tgz.sh $SrcTGZ
|
./create_lazarus_export_tgz.sh $SrcTGZ
|
||||||
fi
|
fi
|
||||||
@ -204,6 +204,7 @@ strip lazbuild
|
|||||||
strip tools/lazres
|
strip tools/lazres
|
||||||
strip tools/updatepofiles
|
strip tools/updatepofiles
|
||||||
strip tools/lrstolfm
|
strip tools/lrstolfm
|
||||||
|
# Note: svn2revisioninc supports git too
|
||||||
strip tools/svn2revisioninc
|
strip tools/svn2revisioninc
|
||||||
if [ -f components/chmhelp/lhelp/lhelp ]; then
|
if [ -f components/chmhelp/lhelp/lhelp ]; then
|
||||||
strip components/chmhelp/lhelp/lhelp
|
strip components/chmhelp/lhelp/lhelp
|
||||||
|
@ -68,22 +68,26 @@ TmpLazDir=$TmpDir/lazarus
|
|||||||
mkdir -p $TmpDir
|
mkdir -p $TmpDir
|
||||||
rm -rf $TmpLazDir
|
rm -rf $TmpLazDir
|
||||||
if [ "x$Download" = "xyes" ]; then
|
if [ "x$Download" = "xyes" ]; then
|
||||||
echo "downloading lazarus svn ..."
|
echo "downloading lazarus git ..."
|
||||||
mkdir -p $TmpLazDir
|
mkdir -p $TmpLazDir
|
||||||
Revision=Exported
|
Revision=Exported
|
||||||
cd $TmpDir
|
cd $TmpDir
|
||||||
svn export http://svn.freepascal.org/svn/lazarus/trunk $TmpLazDir
|
# old-svn: svn export http://svn.freepascal.org/svn/lazarus/trunk $TmpLazDir
|
||||||
# git clone --depth=1 https://gitlab.com/freepascal.org/lazarus/lazarus.git $TmpLazDir
|
git clone --depth=1 https://gitlab.com/freepascal.org/lazarus/lazarus.git $TmpLazDir
|
||||||
# rm -rf $TmpLazDir/.git
|
rm -rf $TmpLazDir/.git
|
||||||
cd -
|
cd -
|
||||||
else
|
else
|
||||||
echo "extracting lazarus from local svn ..."
|
echo "extracting lazarus from local git ..."
|
||||||
LazSrcDir=$(pwd | sed -e 's#/tools/install.*$##')
|
LazSrcDir=$(pwd | sed -e 's#/tools/install.*$##')
|
||||||
#Revision=$(svnversion $LazSrcDir) - comment this out as svn no longer works
|
# old-svn: 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
|
# old-svn: cp -a $LazSrcDir $TmpLazDir
|
||||||
git -C $LazSrcDir --work-tree=$TmpLazDir restore .
|
mkdir $TmpLazDir
|
||||||
|
cp -a $LazSrcDir/.git $TmpLazDir/
|
||||||
|
git -C $TmpLazDir restore .
|
||||||
|
rm -rf $TmpLazDir/.git
|
||||||
|
#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