Skip to content

Commit 5c0e0d3

Browse files
committed
PRINCE: gen-translations.sh expects an input filename now
This script used to reference a submodule in the ScummVM source tree with the translation sources. That submodule was removed, so the script now expects an argument and prints a hint if the directory does not exist: ``` % ./engines/prince/gen-translations.sh Usage: ./engines/prince/gen-translations.sh <path-to-scummvm-game-translations> Download or clone from https://github.com/scummvm/game-translations/tree/prince-and-the-coward ```
1 parent b8c2422 commit 5c0e0d3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

engines/prince/gen-translations.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#! /bin/bash
22

3-
cp -v ../../../scummvm/devtools/create_prince/en.po .
3+
set -e
4+
5+
translations_dir="$1"
6+
if [ -z "$translations_dir" ] || [ ! -d "$translations_dir" ]; then
7+
echo "Usage: $0 <path-to-scummvm-game-translations>" >&2
8+
echo "Download or clone from https://github.com/scummvm/game-translations/tree/prince-and-the-coward" >&2
9+
exit 1
10+
fi
11+
12+
cp -v "$translations_dir"/en.po .
413
perl po-parse.pl en en.po
514
../../scummvm-tools-cli --tool pack_prince .
615
cp -v prince_translation.dat ../../../scummvm/dists/engine-data/

0 commit comments

Comments
 (0)