fixed x86_64-linux rpms for fpc 2.2.0

git-svn-id: trunk@12033 -
This commit is contained in:
vincents 2007-09-15 09:15:53 +00:00
parent f4c706df05
commit 74d9903b57
2 changed files with 2 additions and 5 deletions

View File

@ -64,10 +64,7 @@ CompilerVersion=`cat $VersionFile | grep ' *version_nr *=.*;' | sed -e 's/[^0-9]
CompilerRelease=`cat $VersionFile | grep ' *release_nr *=.*;' | sed -e 's/[^0-9]//g'`
CompilerPatch=`cat $VersionFile | grep ' *patch_nr *=.*;' | sed -e 's/[^0-9]//g'`
CompilerVersionStr="$CompilerVersion.$CompilerRelease.$CompilerPatch"
LazVersion="$CompilerVersion.$CompilerRelease"
if [ "$CompilerPatch" != "0" ]; then
LazVersion="$LazVersion.$CompilerPatch"
fi
LazVersion="$CompilerVersion.$CompilerRelease.$CompilerPatch"
# set version numbers in all Makefiles
perl replace_in_files.pl -sR -f '=\d.\d.\d' -r =$CompilerVersionStr -m 'Makefile(.fpc)?' $TmpDir/*

View File

@ -30,7 +30,7 @@ Date=`date +%Y%m%d`
RPMDIR=$(rpm/get_rpm_source_dir.sh)
ARCH=`rpm --eval "%{_arch}"`
LIB=`rpm --eval "%{_lib}"`
FPCRPM=$RPMDIR/RPMS/$ARCH/fpc-2.0.4-$Date.$ARCH.rpm
FPCRPM=$RPMDIR/RPMS/$ARCH/fpc-2.2.0-$Date.$ARCH.rpm
if [ ! -f $FPCRPM ]; then
echo ERROR: fpc rpm $FPCRPM not available
exit