Skip to content

Instantly share code, notes, and snippets.

View georgekozlitin's full-sized avatar

George georgekozlitin

View GitHub Profile
@umut
umut / generate_md5_sha1.sh
Created July 29, 2011 08:47
Fixing md5 and sha1 checksums in a maven repository
#!/bin/bash
for f in $(find $1 -name '*.jar' -or -name '*.pom'); do
MD5=`md5sum $f | awk '{print $1}'`;
SHA1=`sha1sum $f | awk '{print $1}'`;
echo $MD5 > $f.md5
echo $SHA1 > $f.sha1
done