summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorwillson-chen <willson.chenwx@gmail.com>2019-09-30 11:00:58 +0800
committerMike Frysinger <vapier@gmail.com>2019-10-09 23:42:08 -0700
commit74f46e938bb82ee315d015f52dc2cbf5276482ed (patch)
tree646f09ab1f4a3a56ef619c55b4ec38a3db41de1a /bootstrap.sh
parenta5761b679f305df1f16dab07d1bb3e59405aed63 (diff)
downloadlibgd-74f46e938bb82ee315d015f52dc2cbf5276482ed.tar.gz
\b is not support in MacOS sed
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 0987b52..fe7dd0f 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -21,7 +21,7 @@ fi
echo "/* Generated from config.hin via autoheader for cmake; see bootstrap.sh. */"
sed -E \
-e '1d' \
- -e '/\bENABLE_/{s:#undef:#define:;s:([^ ]*)$:\1 @\1@:;}' \
+ -e '/ENABLE_/{s:#undef:#define:;s:([^ ]*)$:\1 @\1@:;}' \
-e 's:#undef:#cmakedefine:' \
src/config.hin
) > src/config.h.cmake