[Scummvm-git-logs] scummvm master -> 145d60b663d94796e031872b5782fa4a8609f86a

sev- sev at scummvm.org
Sat Mar 11 12:06:55 CET 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
145d60b663 DEVTOOLS: Made encode-macbinary.sh recursive


Commit: 145d60b663d94796e031872b5782fa4a8609f86a
    https://github.com/scummvm/scummvm/commit/145d60b663d94796e031872b5782fa4a8609f86a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-03-11T12:06:18+01:00

Commit Message:
DEVTOOLS: Made encode-macbinary.sh recursive

Changed paths:
    devtools/encode-macbinary.sh


diff --git a/devtools/encode-macbinary.sh b/devtools/encode-macbinary.sh
index 6635f7f..235dd86 100755
--- a/devtools/encode-macbinary.sh
+++ b/devtools/encode-macbinary.sh
@@ -5,7 +5,19 @@
 
 for i in *
 do
-	macbinary encode "$i"
-	touch -r "$i" "$i.bin"
-	mv "$i.bin" "$i"
+	if test -d "$i" ; then
+		cd "$i"
+		bash $0 "$1/$i"
+		cd ..
+	else
+		echo -n $1/$i ; echo -ne "... \r"
+		macbinary encode "$i"
+		touch -r "$i" "$i.bin"
+		mv "$i.bin" "$i"
+	fi
 done
+
+# on the top level we want to print a new line
+if test -z $1 ; then
+	echo
+fi





More information about the Scummvm-git-logs mailing list