1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!/bin/bash
set -xeu
# Build tools and generate manual pages for them.
CGEDIR=../../..
generate_man ()
{
DIR="$1"
NAME="$2"
SHORT_DESCRIPTION="$3"
shift 3
help2man --section=1 \
--no-info \
--source='Castle Game Engine' \
--name="${SHORT_DESCRIPTION}" \
--output="${NAME}.1" \
"${CGEDIR}/${DIR}/${NAME}"
}
generate_man /debian/tmp/tmp texture-font-to-pascal 'convert ttf font to a Pascal source file'
generate_man /debian/tmp/tmp image-to-pascal 'convert image files into Pascal source code'
generate_man tools/castle-curves castle-curves 'create and edit curves for Castle Game Engine'
generate_man tools/build-tool castle-engine 'build and package Castle Game Engine programs'
|