File: generate.sh

package info (click to toggle)
castle-game-engine 6.4%2Bdfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 195,044 kB
  • sloc: pascal: 364,622; ansic: 8,606; java: 2,851; objc: 2,601; cpp: 1,412; xml: 851; makefile: 723; sh: 563; php: 26
file content (31 lines) | stat: -rwxr-xr-x 872 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
#!/bin/bash
set -eu

# Build tools and generate manual pages for them.

CGEDIR=../../..

generate_man ()
{
  DIR="$1"
  NAME="$2"
  SHORT_DESCRIPTION="$3"
  shift 3

  pushd "$CGEDIR"
  "tools/${DIR}/${NAME}_compile.sh"
  popd

  help2man --section=1 \
    --no-info \
    --source='Castle Game Engine' \
    --name="${SHORT_DESCRIPTION}" \
    --output="${NAME}.1" \
    "${CGEDIR}/tools/${DIR}/${NAME}"
}

generate_man texture-font-to-pascal texture-font-to-pascal 'convert ttf font to a Pascal source file'
generate_man image-to-pascal image-to-pascal 'convert image files into Pascal source code'
generate_man castle-curves castle-curves 'create and edit curves for Castle Game Engine'
generate_man build-tool castle-engine 'build and package Castle Game Engine programs'
generate_man sprite-sheet-to-x3d sprite-sheet-to-x3d 'convert spritesheet files into X3D files'