Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5d2e4a1c06
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.469 kb
#!/bin/sh
for tarball in archive/*/*/*.tar.gz; do
pkgdir=$(dirname ${tarball})
pkgname=$(basename ${tarball} .tar.gz)
if tar -tzf ${tarball} ${pkgname}/Setup.hs 2> /dev/null; then
tar -xzf ${tarball} ${pkgname}/Setup.hs -O > ${pkgdir}/Setup.hs
elif tar -tzf ${tarball} ${pkgname}/Setup.lhs 2> /dev/null; then
tar -xzf ${tarball} ${pkgname}/Setup.lhs -O > ${pkgdir}/Setup.lhs
else
echo "${pkgname} has no Setup.hs or .lhs at all!!?!"
fi
done
Jump to Line
Something went wrong with that request. Please try again.