Created
April 18, 2013 09:02
-
-
Save viegelinsch/5411321 to your computer and use it in GitHub Desktop.
"stolen" from https://github.com/hbons/Dazzle/blob/master/dazzle.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add list of files that Git should not compress | |
EXTENSIONS="jpg jpeg png tiff gif flac mp3 ogg oga avi mov mpg mpeg mkv ogv ogx webm zip gz bz bz2 rpm deb tgz rar ace 7z pak iso dmg" | |
for EXTENSION in $EXTENSIONS; do | |
sleep 0.05 | |
echo -ne " -> echo \"*.$EXTENSION -delta\" >> trans/info/attributes \r" | |
echo "*.$EXTENSION -delta" >> "trans/info/attributes" | |
sleep 0.05 | |
EXTENSION_UPPERCASE=`echo $EXTENSION | tr '[:lower:]' '[:upper:]'` | |
echo -ne " -> echo \"*.$EXTENSION_UPPERCASE -delta\" >> trans/info/attributes \r" | |
echo "*.$EXTENSION_UPPERCASE -delta" >> "trans/info/attributes" | |
done | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment