Blame bootstrap.sh

Packit ed3af9
#!/bin/sh --
Packit ed3af9
# $Id$
Packit ed3af9
# Small shell script to build gd from source
Packit ed3af9
Packit ed3af9
v() { echo "$@"; "$@"; }
Packit ed3af9
Packit ed3af9
# Generate the manual (unless naturaldocs isn't installed).  Source
Packit ed3af9
# dists should include the docs so that end users don't need to
Packit ed3af9
# install naturaldocs.  At the same time, we tolerate it being missing
Packit ed3af9
# so that random hackers don't need it just to build the code.
Packit ed3af9
v docs/naturaldocs/run_docs.sh --nonfatal
Packit ed3af9
Packit ed3af9
if echo "${OSTYPE:-$(uname)}" | grep -q '^darwin' ; then
Packit ed3af9
	echo "Having trouble on OS X? Try: brew install autoconf libtool automake gettext apple-gcc42 pkg-config cmake"
Packit ed3af9
fi
Packit ed3af9
Packit ed3af9
if ! v autoreconf -f -i ; then
Packit ed3af9
	exit 1
Packit ed3af9
fi
Packit ed3af9
Packit ed3af9
(
Packit ed3af9
echo "/* Generated from config.hin via autoheader for cmake; see bootstrap.sh. */"
Packit ed3af9
sed \
Packit ed3af9
	-e '1d' \
Packit ed3af9
	-e 's:#undef:#cmakedefine:' \
Packit ed3af9
	src/config.hin
Packit ed3af9
) > src/config.h.cmake