Created
June 13, 2014 16:49
-
-
Save majek/ae188ae72e63470652c9 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
(mkdir git && cd git && git init) | |
for NAME in `ls open*tgz|cut -d "." -f 1|sort`; do | |
FILE=$NAME.tgz | |
MD5=`md5sum $FILE` | |
tar xzf $FILE | |
(cd git && git rm -r *) | |
mv $NAME/* git | |
(cd git && git add *) | |
cat <<EOF > log | |
$NAME | |
$MD5 | |
EOF | |
(cd git && git commit --author="solarflare <>" -F ../log ) | |
done | |
(cd git && git gc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment