mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 06:29:42 +02:00
* allow to set value on cmdline since llvm versions don't work atm.
* also patch gprt0.as git-svn-id: trunk@35100 -
This commit is contained in:
parent
e51da008fe
commit
02e2b8752d
@ -1,12 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
if [ "$#" -ne 1 ]
|
||||||
|
then
|
||||||
elfdump -n `which elfdump` |awk '/FreeBSD/{print $2}' >elfversion
|
elfdump -n `which elfdump` |awk '/FreeBSD/{print $2}' >elfversion
|
||||||
IDVERSION=`cat elfversion`
|
IDVERSION=`cat elfversion`
|
||||||
rm elfversion
|
rm elfversion
|
||||||
|
else
|
||||||
|
IDVERSION=$1
|
||||||
|
fi
|
||||||
echo Patching cprt0.as with version $IDVERSION
|
echo Patching cprt0.as with version $IDVERSION
|
||||||
|
|
||||||
sed -I.sav -es/900044/$IDVERSION/ cprt0.as
|
sed -I.sav -es/900044/$IDVERSION/ cprt0.as
|
||||||
sed -I.sav -es/900044/$IDVERSION/ dllprt0.as
|
sed -I.sav -es/900044/$IDVERSION/ dllprt0.as
|
||||||
sed -I.sav -es/900044/$IDVERSION/ prt0.as
|
sed -I.sav -es/900044/$IDVERSION/ prt0.as
|
||||||
|
sed -I.sav -es/900044/$IDVERSION/ gprt0.as
|
||||||
sed -I.sav -es/900044/$IDVERSION/ si_c.inc
|
sed -I.sav -es/900044/$IDVERSION/ si_c.inc
|
||||||
sed -I.sav -es/900044/$IDVERSION/ si_prc.inc
|
sed -I.sav -es/900044/$IDVERSION/ si_prc.inc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user