DEVTOOLS: Put script which is used for preserving WAGE games

This commit is contained in:
Eugene Sandulenko 2016-04-01 11:35:00 +02:00
parent 4610ae906b
commit 307c8b0ecb

11
devtools/encode-macbinary.sh Executable file
View File

@ -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