# Jigsaw Download (jigdo)
# ===============
# If you just want to download something and don't have jigdo, you may just
# want to install jigdo-lite. It'll be quick and it doesn't require many
# prerequisites. The source version (at the bottom) includes a GUI and other
# features that the lite version doesn't.
cd
test -f installed/jigdo-0.7.1.tar.bz2 && mv installed/jigdo-0.7.1.tar.bz2 .
test ! -f jigdo-0.7.1.tar.bz2 &&
wget http://atterer.net/jigdo/jigdo-0.7.1.tar.bz2
cd /usr/local/src
find -type d -maxdepth 1 -name "jigdo-*" -exec rm -r {} \;
tar xjvf ~/jigdo-0.7.1.tar.bz2
cd jigdo-0.7.1
chown -R root.root .
./configure --disable-nls
make
make install
cd
mkdir -p -m 0700 installed
rm -f installed/jigdo-*.tar.*
mv jigdo-0.7.1.tar.bz2 installed/
# The GUI app is 'jigdo', the bash script is 'jigdo-lite'. See the jigdo,
# jigdo-lite, jigdo-file, and jigdo-mirror man pages and the Debian Jigdo
# mini-howto (doc/debian-jigdo-mini-howto.html) for more info.