summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorChris Reuter <chris@blit.ca>2013-11-15 23:40:32 -0500
committerChris Reuter <chris@blit.ca>2013-11-18 18:21:27 -0500
commit3c1202e5bb91e04cfb54d211f553030c29a855c1 (patch)
treeb62e086955e4f403ce2b5111edca590f6bcede4f /bootstrap.sh
parent769fb1534c878e827a3cbb9cc89241b31f394bfa (diff)
downloadlibgd-3c1202e5bb91e04cfb54d211f553030c29a855c1.tar.gz
Added beginnings of an updated manual
This changeset adds scripts and frontmatter for a user manual for LibGD. The manual is written using naturaldoc. That is, the actual manual (minus some front-matter taken from the manual for version 2.0.36) is generated from specially-formatted comments in the source code. bootstrap.sh has been modified to also trigger generation of the manual.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 3092064..35d4d4b 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -2,6 +2,18 @@
# $Id$
# Small shell script to build gd from source
+# Generate the manual (unless naturaldocs isn't installed). Source
+# dists should include the docs so that end users don't need to
+# install naturaldocs. At the same time, we tolerate it being missing
+# so that random hackers don't need it just to build the code.
+if which naturaldocs > /dev/null; then
+ echo "Generation user docs:"
+ (cd docs/naturaldocs; bash run_docs.sh)
+else
+ echo "Can't find naturaldocs; not generating user manual."
+fi
+
+
# allow importing from the environment, e.g.
# "AUTOCONF=autoconf259 ... ./bootstrap.sh"
ACLOCAL=${ACLOCAL:-aclocal}