mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 19:40:20 +02:00
rpm: fixed chomping architecture from fpc version
git-svn-id: trunk@30098 -
This commit is contained in:
parent
fc85e2dcc0
commit
62539f8508
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Note: To create an rpm as normal user, see the script rpm/create_nonroot_rpmmacros.sh
|
||||
set -x
|
||||
set -e
|
||||
|
||||
@ -15,7 +16,8 @@ if [ "x$FPCRPM" = "x" ]; then
|
||||
echo ERROR: fpc rpm not installed
|
||||
exit
|
||||
fi
|
||||
FPCRPMVersion=$(echo $FPCRPM | sed -e 's/fpc-//g' -e 's/\.i386\|\.x86_64//g')
|
||||
# remove from the fpc version the architecture i386, i686, x86_64
|
||||
FPCRPMVersion=$(echo $FPCRPM | sed -e 's/fpc-//g' -e 's/\.[a-z0-9_]\+$//g')
|
||||
echo "installed fpc version: $FPCRPMVersion"
|
||||
FPCSRCRPMVersion=$(echo $FPCRPMVersion | cut -d- -f1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user