deb: fixed export tgz, fixed RC version number turning RC into .0

This commit is contained in:
mattias 2023-06-25 19:39:07 +02:00
parent ac12e6b763
commit 1002929c77
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ fi
FPCVersion=$($ppcbin -v | grep version| sed 's/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/')
# get Lazarus version
LazVersion=$(./get_lazarus_version.sh)
LazVersion=$(./get_lazarus_version.sh | sed -e 's/RC[0-9]/.0/')
# get consistent major.minor.release version, to avoid dpkg install an older version
if [ $(echo $LazVersion | egrep '^[^.]*\.[^.]*$') ]; then
LazVersion=${LazVersion}.0
@ -159,6 +159,7 @@ cd -
if [ "$UseCHMHelp" = "1" ]; then
echo
echo "Copying chm files"
mkdir -p $LazDestDir/docs/chm
cd $LazSrcDir/docs/chm
cp -v *.kwd *.chm $LazDestDir/docs/chm/
cd -

View File

@ -81,7 +81,6 @@ else
LazSrcDir=$(pwd | sed -e 's#/tools/install.*$##')
# old-svn: Revision=$(svnversion $LazSrcDir) - comment this out as svn no longer works
Revision=$(git -C $LazSrcDir describe --always --first-parent)
cd $TmpDir
# old-svn: cp -a $LazSrcDir $TmpLazDir
mkdir $TmpLazDir
cd $TmpLazDir