/usr/src/castle-game-engine-4.1.1/x3d/teapot/teapot_3d_to_pascal_compile.sh is in castle-game-engine-src 4.1.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #!/bin/bash
set -eu
# Allow calling this script from it's dir.
if [ -f teapot_3d_to_pascal.lpr ]; then
cd ../../../
fi
# Call this from ../../ (or just use `make examples').
fpc -dRELEASE @castle-fpc.cfg src/x3d/teapot/teapot_3d_to_pascal.lpr
|