From 29a0ab48fb6221aa0aff94b68dba8f23b954906e Mon Sep 17 00:00:00 2001 From: midipix Date: May 14 2016 13:51:30 +0000 Subject: add missing post-generation substitution in the driver and public headers. --- diff --git a/sofort.sh b/sofort.sh index ad7763e..193dfca 100755 --- a/sofort.sh +++ b/sofort.sh @@ -78,6 +78,19 @@ for f in $files; do mv "$f.tmp" "$f" || exit 2 done +# and also the driver and public headers +files="$dstdir/src/driver/sfrt_driver_ctx.c" +files="$files $dstdir/src/internal/sofort_driver_impl.h" +files="$files $dstdir/include/sofort/sofort.h" +files="$files $dstdir/include/sofort/sofort_api.h" + +upperspace=`echo "$project" | tr '[:lower:]' '[:upper:]'` + +for f in $files; do + sed -e s/SOFORT/$upperspace/g "$f" > "$f.tmp" || exit 2 + mv "$f.tmp" "$f" || exit 2 +done + # and also project/tagver.mk, which has SFRT, not SFRT_ f=project/tagver.mk upperspace=`echo "$namespace" | tr '[:lower:]' '[:upper:]'`