Skip to content

Instantly share code, notes, and snippets.

@majek
Created June 13, 2014 16:49
Show Gist options
  • Save majek/ae188ae72e63470652c9 to your computer and use it in GitHub Desktop.
Save majek/ae188ae72e63470652c9 to your computer and use it in GitHub Desktop.
#!/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