File: generate.sh

package info (click to toggle)
castle-game-engine 7.0~alpha.2%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 556,924 kB
  • sloc: pascal: 653,527; javascript: 28,186; cpp: 13,797; xml: 9,296; ansic: 9,212; java: 3,495; objc: 2,909; sh: 881; makefile: 616; php: 65; lisp: 21; ruby: 8
file content (26 lines) | stat: -rwxr-xr-x 714 bytes parent folder | download
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'