diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2018-04-02 20:03:30 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-04-07 08:13:09 +0700 |
commit | 4b2199c2f988804b09e0fc91d6ecfa0ad08b1160 (patch) | |
tree | c59b951491fbcf963aaa27627c42e1cceb3e6cde /games/marathon-eternal-data/marathon-eternal-data.SlackBuild | |
parent | 7ec3df19737aaa1ec555f62a43624cc2e1f2bfaa (diff) |
games/marathon-eternal-data: Fixed for Windows formatted scripts.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/marathon-eternal-data/marathon-eternal-data.SlackBuild')
-rw-r--r-- | games/marathon-eternal-data/marathon-eternal-data.SlackBuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/games/marathon-eternal-data/marathon-eternal-data.SlackBuild b/games/marathon-eternal-data/marathon-eternal-data.SlackBuild index c80802f33b143..aa236e38fdb7e 100644 --- a/games/marathon-eternal-data/marathon-eternal-data.SlackBuild +++ b/games/marathon-eternal-data/marathon-eternal-data.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=marathon-eternal-data VERSION=${VERSION:-1.1.0} SRCVER=$(printf %s "$VERSION" | tr -d .) -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} ARCH=noarch @@ -90,6 +90,13 @@ rm -rf $DATADIR/__MACOSX # Remove unneeded hidden files find $DATADIR -name ".[^.]*" -mindepth 1 -print0 | xargs -0r rm -rf +# 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 |