summaryrefslogtreecommitdiff
path: root/os/debian/openttd-wrapper
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2019-04-07 12:00:36 +0200
committerglx22 <glx22@users.noreply.github.com>2020-06-05 19:36:05 +0200
commitb7643b1d36cb41eb6712042761c13b9819fcbe74 (patch)
tree3bb422ed83832cf197692aef82f142a187a28af6 /os/debian/openttd-wrapper
parent56d54cf60eb5814f77dfcce91cf12879f01e1d1b (diff)
downloadopenttd-b7643b1d36cb41eb6712042761c13b9819fcbe74.tar.xz
Add: create bundles via CPack
CPack works closely together with CMake to do the right thing in terms of bundling (called 'package'). This generates all the packaging we need, and some more.
Diffstat (limited to 'os/debian/openttd-wrapper')
-rw-r--r--os/debian/openttd-wrapper28
1 files changed, 0 insertions, 28 deletions
diff --git a/os/debian/openttd-wrapper b/os/debian/openttd-wrapper
deleted file mode 100644
index 6f85f00b0..000000000
--- a/os/debian/openttd-wrapper
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-# This is a wrapper script that checks openttd's exit status and
-# displays its stderr output
-
-# Get a file to capture stderr to. Use the deprecated -t option, so this
-# works on the old mktemp from the mktemp package (which has been
-# replaced by the version from the coreutils package).
-TMPFILE=`mktemp -t openttd.errout.XXXXXXXXX`
-
-if [ ! -w "$TMPFILE" ]; then
- xmessage "Could not create temporary file for error messages. Not starting OpenTTD."
- exit 1;
-fi
-
-# Capture stderr
-openttd "$@" 2> "$TMPFILE"
-ERRCODE=$?
-if [ "$ERRCODE" -ne 0 ]; then
- CODEMSG="OpenTTD returned with error code $ERRCODE."
- if [ -s "$TMPFILE" ]; then
- MESSAGE="$CODEMSG The following error messages were produced:\n\n"
- printf "$MESSAGE" | cat - "$TMPFILE" | fold -s | xmessage -file -
- else
- xmessage "$CODEMSG No error messages were produced."
- fi
-fi
-
-rm -f "$TMPFILE"