fpc/rtl/freebsd/i386/identpatch.sh
2012-01-25 13:46:58 +00:00

8 lines
208 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