summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-02-20 03:07:57 -0500
committerMike Frysinger <vapier@gentoo.org>2021-02-20 03:07:57 -0500
commitcf956ff56b88df7d8a8ecb8d4496f2ee650a6f4f (patch)
treec909dfedeffb502829f4a6dc041063648c3274d9 /bootstrap.sh
parentc0a55d9d00adbb1ae9f31eea6f390b705276cff7 (diff)
downloadlibgd-cf956ff56b88df7d8a8ecb8d4496f2ee650a6f4f.tar.gz
bootstrap: fix config.h.cmake generation (#622)
The generated header file was manually changed, but rerunning this script will change it back. Fix the script to use the new format.
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 9dda8cf..2eca5cf 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 '/ENABLE_/{s:#undef:#define:;s:([^ ]*)$:\1 @\1@:;}' \
+ -e '/ENABLE_/{s:#undef:#cmakedefine01:}' \
-e 's:#undef:#cmakedefine:' \
src/config.hin
) > src/config.h.cmake