mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 00:40:22 +02:00
rpm: improved getting target_cpu
git-svn-id: trunk@12823 -
This commit is contained in:
parent
439f5106bb
commit
910276c025
@ -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}")
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
@ -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 ..."
|
||||
|
Loading…
Reference in New Issue
Block a user