diff options
author | midipix <writeonce@midipix.org> | 2016-05-14 09:51:30 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-14 09:51:30 -0400 |
commit | 29a0ab48fb6221aa0aff94b68dba8f23b954906e (patch) | |
tree | 127f00c02fcc1ddaa92e3aa62cb2f0f406a58b78 /sofort.sh | |
parent | 02d78787d7f18fe278ac1a8ffe192eb1ceae0fbb (diff) | |
download | sofort-29a0ab48fb6221aa0aff94b68dba8f23b954906e.tar.bz2 sofort-29a0ab48fb6221aa0aff94b68dba8f23b954906e.tar.xz |
add missing post-generation substitution in the driver and public headers.
Diffstat (limited to 'sofort.sh')
-rwxr-xr-x | sofort.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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:]'` |