Created
December 21, 2014 23:24
-
-
Save vincenthz/e8021f250a9c7f030d2c to your computer and use it in GitHub Desktop.
mirror hackage (2014-12 version)
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/sh | |
[ ! -d package ] && mkdir package | |
for splitpk in `tar tf 00-index.tar.gz | cut -d/ -f 1,2`; do | |
pk=`echo $splitpk | sed 's|/|-|'` | |
name=$pk.tar.gz | |
if [ ! -a package/$name ]; then | |
wget http://hackage.haskell.org/package/$pk/$name -O package/$name | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment