aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorEugene Sandulenko2016-04-01 11:35:00 +0200
committerEugene Sandulenko2016-04-01 11:35:00 +0200
commit307c8b0ecb861c51cad72f614a43a67b1ab00d3e (patch)
tree4456f4e15b8aef4850f462db58070d4ea12e20c8 /devtools
parent4610ae906bf413f771822f235e7b3757de3bfae9 (diff)
downloadscummvm-rg350-307c8b0ecb861c51cad72f614a43a67b1ab00d3e.tar.gz
scummvm-rg350-307c8b0ecb861c51cad72f614a43a67b1ab00d3e.tar.bz2
scummvm-rg350-307c8b0ecb861c51cad72f614a43a67b1ab00d3e.zip
DEVTOOLS: Put script which is used for preserving WAGE games
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/encode-macbinary.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/devtools/encode-macbinary.sh b/devtools/encode-macbinary.sh
new file mode 100755
index 0000000000..6635f7fcda
--- /dev/null
+++ b/devtools/encode-macbinary.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Iterates over current directory, encodes all files with
+# MacBinary but ensures that the dates are preserved
+
+for i in *
+do
+ macbinary encode "$i"
+ touch -r "$i" "$i.bin"
+ mv "$i.bin" "$i"
+done