aboutsummaryrefslogtreecommitdiff
path: root/devtools/encode-macbinary.sh
blob: 6635f7fcda8bc0b44cf63edd1698da179b87aa09 (plain)
1
2
3
4
5
6
7
8
9
10
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