bootstrap.sh (libgd-2.3.1) | : | bootstrap.sh (libgd-2.3.2) | ||
---|---|---|---|---|
skipping to change at line 12 | skipping to change at line 12 | |||
# Small shell script to build gd from source | # Small shell script to build gd from source | |||
v() { echo "$@"; "$@"; } | v() { echo "$@"; "$@"; } | |||
# Generate the manual (unless naturaldocs isn't installed). Source | # Generate the manual (unless naturaldocs isn't installed). Source | |||
# dists should include the docs so that end users don't need to | # dists should include the docs so that end users don't need to | |||
# install naturaldocs. At the same time, we tolerate it being missing | # install naturaldocs. At the same time, we tolerate it being missing | |||
# so that random hackers don't need it just to build the code. | # so that random hackers don't need it just to build the code. | |||
v docs/naturaldocs/run_docs.sh --nonfatal | v docs/naturaldocs/run_docs.sh --nonfatal | |||
if echo "${OSTYPE:-$(uname)}" | grep -q '^darwin' ; then | if uname | grep -qi '^darwin' ; then | |||
echo "Having trouble on OS X? Try: brew install autoconf libtool automake gettext pkg-config cmake" | echo "Having trouble on OS X? Try: brew install autoconf libtool automake gettext pkg-config cmake" | |||
fi | fi | |||
if ! v autoreconf -f -i ; then | if ! v autoreconf -f -i ; then | |||
exit 1 | exit 1 | |||
fi | fi | |||
( | ( | |||
echo "/* Generated from config.hin via autoheader for cmake; see bootstrap.sh. * /" | echo "/* Generated from config.hin via autoheader for cmake; see bootstrap.sh. * /" | |||
sed -E \ | sed -E \ | |||
-e '1d' \ | -e '1d' \ | |||
-e '/ENABLE_/{s:#undef:#define:;s:([^ ]*)$:\1 @\1@:;}' \ | -e '/ENABLE_/s:#undef:#cmakedefine01:' \ | |||
-e 's:#undef:#cmakedefine:' \ | -e 's:#undef:#cmakedefine:' \ | |||
src/config.hin | src/config.hin | |||
) > src/config.h.cmake | ) > src/config.h.cmake | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |