Created
July 29, 2011 08:47
-
-
Save umut/1113459 to your computer and use it in GitHub Desktop.
Fixing md5 and sha1 checksums in a maven repository
This file contains hidden or 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 | |
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment