aboutsummaryrefslogtreecommitdiff
path: root/games/Tempus-Irae/Tempus-Irae.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-04-02 19:59:16 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-07 08:13:09 +0700
commit7ec3df19737aaa1ec555f62a43624cc2e1f2bfaa (patch)
treece87110bf07c6eead60fd2a4cc867558c2546e65 /games/Tempus-Irae/Tempus-Irae.SlackBuild
parent4ec9adbe93af2915c1feb6c42af29f7359f6c3f6 (diff)
games/Tempus-Irae: Fixed for Windows formatted scripts.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/Tempus-Irae/Tempus-Irae.SlackBuild')
-rw-r--r--games/Tempus-Irae/Tempus-Irae.SlackBuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/games/Tempus-Irae/Tempus-Irae.SlackBuild b/games/Tempus-Irae/Tempus-Irae.SlackBuild
index 878dd9bdf3fb..81fb8f0f1c68 100644
--- a/games/Tempus-Irae/Tempus-Irae.SlackBuild
+++ b/games/Tempus-Irae/Tempus-Irae.SlackBuild
@@ -89,6 +89,13 @@ Comment=$(printf %s $PRGNAM | tr - " ") (first-person shooter game)
Categories=Game;ActionGame;
EOF
+# Fix windows formatted scripts
+set -- $DATADIR/*/Scripts/*
+for script do
+ tr '\r' '\n' < "$script" > "$script-tmp"
+ mv -- "$script-tmp" "$script"
+done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild