"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/naturaldocs/run_docs.sh" between
libgd-2.3.1.tar.gz and libgd-2.3.2.tar.gz

About: LibGD is a library for the dynamic creation of images by programmers (PNG, JPEG, GIF, WebP, XPM, BMP support).

run_docs.sh  (libgd-2.3.1):run_docs.sh  (libgd-2.3.2)
skipping to change at line 18 skipping to change at line 18
if [ $# -ne 0 ] ; then if [ $# -ne 0 ] ; then
printf 'ERROR: %b\n' "$*" printf 'ERROR: %b\n' "$*"
exit 1 exit 1
else else
exit 0 exit 0
fi fi
} }
nd() { nd() {
# Figure out the name of this tool. # Figure out the name of this tool.
if which naturaldocs 2>/dev/null ; then if command -v naturaldocs ; then
return return
elif which NaturalDocs 2>/dev/null ; then elif command -v NaturalDocs ; then
return return
else else
return 1 return 1
fi fi
} }
cd "$(dirname "$0")" cd "$(dirname "$0")"
if [ $# -eq 1 ] ; then if [ $# -eq 1 ] ; then
case $1 in case $1 in
skipping to change at line 48 skipping to change at line 48
usage usage
;; ;;
*) *)
usage "unknown option: $1" usage "unknown option: $1"
;; ;;
esac esac
elif [ $# -ne 0 ] ; then elif [ $# -ne 0 ] ; then
usage "unknown options: $*" usage "unknown options: $*"
fi fi
# Version number # Dump the tool version info for debugging.
VERSION=`(cd ../../; perl config/getver.pl)` echo "Found '$(nd)': $($(nd) -h | head -n1)"
# Library version number.
VERSION=$(cd ../../; perl config/getver.pl)
# Clear away old docs and ensure the doc dir. is present. # Clear away old docs and ensure the doc dir. is present.
rm -rf html rm -rf html
mkdir html mkdir html
# Create a lightly-processed copy of the source to use as input. This # Create a lightly-processed copy of the source to use as input. This
# file skips all non-C code in src/ and removes the BGD_DECLARE() # file skips all non-C code in src/ and removes the BGD_DECLARE()
# macro from definitions so they don't show up in the docs. # macro from definitions so they don't show up in the docs.
rm -rf tmp rm -rf tmp
mkdir tmp mkdir tmp
perl nobgd.pl ../../src/ tmp/ perl nobgd.pl ../../src/ tmp/
# Add the external docs. # Add the external docs.
echo "Title: License" | cat - ../../COPYING > tmp/license.txt echo "Title: License" | cat - ../../COPYING > tmp/license.txt
sed -e "s/@VERSION@/$VERSION/g" preamble.txt > tmp/preamble.txt sed -e "s/@VERSION@/$VERSION/g" preamble.txt > tmp/preamble.txt
# ^^^ hack to get the version number in the docs. # ^^^ hack to get the version number in the docs.
# Run naturaldocs to create the manual. # Run naturaldocs to create the manual.
$(nd) --rebuild --rebuild-output --documented-only \ $(nd) --rebuild --rebuild-output --documented-only \
-i tmp/ \ -i tmp/ \
-img images/ \ -img images/ \
-o html html \ -o html html \
--project project/ \ --project project/ \
-s Default libgd -s Default libgd
# And cleanup the temp files. # And cleanup the temp files.
rm -rf Data tmp rm -rf Data tmp
 End of changes. 4 change blocks. 
9 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)