From 307c8b0ecb861c51cad72f614a43a67b1ab00d3e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 1 Apr 2016 11:35:00 +0200 Subject: DEVTOOLS: Put script which is used for preserving WAGE games --- devtools/encode-macbinary.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 devtools/encode-macbinary.sh 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 -- cgit v1.2.3