rpm: improved getting target_cpu

git-svn-id: trunk@12823 -
This commit is contained in:
mattias 2007-11-11 10:37:58 +00:00
parent 439f5106bb
commit 910276c025
2 changed files with 2 additions and 8 deletions

View File

@ -78,10 +78,7 @@ if [ "$CompilerPatch" != "0" ]; then
fi
echo " $CompilerVersionStr-$FPCRelease"
Arch=i386
if [ -f /etc/rpm/platform ]; then
Arch=$(cat /etc/rpm/platform | sed -e 's/-.*//')
fi
Arch=$(rpm --eval "%{_arch}")
#------------------------------------------------------------------------------

View File

@ -27,10 +27,7 @@ SrcTGZ=$(./rpm/get_rpm_source_dir.sh)/SOURCES/$Src
TmpDir=/tmp/lazarus$LazVersion
SpecFile=rpm/lazarus-$LazVersion-$LazRelease.spec
Arch=i386
if [ -f /etc/rpm/platform ]; then
Arch=$(cat /etc/rpm/platform | sed -e 's/-.*//')
fi
Arch=$(rpm --eval "%{_arch}")
# download lazarus svn if needed
echo "creating lazarus tgz ..."