mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-30 09:28:15 +02:00
13 lines
384 B
Bash
13 lines
384 B
Bash
#!/bin/sh
|
|
elfdump -n `which elfdump` |awk '/FreeBSD/{print $2}' >elfversion
|
|
IDVERSION=`cat elfversion`
|
|
rm elfversion
|
|
echo Patching cprt0.as with version $IDVERSION
|
|
|
|
sed -I.sav -es/900044/$IDVERSION/ cprt0.as
|
|
sed -I.sav -es/900044/$IDVERSION/ dllprt0.as
|
|
sed -I.sav -es/900044/$IDVERSION/ prt0.as
|
|
sed -I.sav -es/900044/$IDVERSION/ si_c.inc
|
|
sed -I.sav -es/900044/$IDVERSION/ si_prc.inc
|
|
|