"Fossies" - the Fresh Open Source Software Archive

Member "libgd-2.3.2/bootstrap.sh" (3 Mar 2021, 796 Bytes) of package /linux/www/libgd-2.3.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "bootstrap.sh": 2.3.1_vs_2.3.2.

    1 #!/bin/sh --
    2 # Small shell script to build gd from source
    3 
    4 v() { echo "$@"; "$@"; }
    5 
    6 # Generate the manual (unless naturaldocs isn't installed).  Source
    7 # dists should include the docs so that end users don't need to
    8 # install naturaldocs.  At the same time, we tolerate it being missing
    9 # so that random hackers don't need it just to build the code.
   10 v docs/naturaldocs/run_docs.sh --nonfatal
   11 
   12 if uname | grep -qi '^darwin' ; then
   13     echo "Having trouble on OS X? Try: brew install autoconf libtool automake gettext pkg-config cmake"
   14 fi
   15 
   16 if ! v autoreconf -f -i ; then
   17     exit 1
   18 fi
   19 
   20 (
   21 echo "/* Generated from config.hin via autoheader for cmake; see bootstrap.sh. */"
   22 sed -E \
   23     -e '1d' \
   24     -e '/ENABLE_/s:#undef:#cmakedefine01:' \
   25     -e 's:#undef:#cmakedefine:' \
   26     src/config.hin
   27 ) > src/config.h.cmake