Skip to content

Instantly share code, notes, and snippets.

@micolous
Created November 28, 2011 02:04
Show Gist options
  • Save micolous/1398783 to your computer and use it in GitHub Desktop.
Save micolous/1398783 to your computer and use it in GitHub Desktop.
downloads minecraft
#!/bin/sh
mkdir -p MinecraftDownload
cd MinecraftDownload
echo "Downloading content..."
cat << EOF | wget -U Mozilla/5.0 -c -N -i -
http://s3.amazonaws.com/MinecraftDownload/minecraft.jar
http://s3.amazonaws.com/MinecraftDownload/lwjgl.jar
http://s3.amazonaws.com/MinecraftDownload/jinput.jar
http://s3.amazonaws.com/MinecraftDownload/lwjgl_util.jar
http://s3.amazonaws.com/MinecraftDownload/linux_natives.jar.lzma
http://s3.amazonaws.com/MinecraftDownload/macosx_natives.jar.lzma
http://s3.amazonaws.com/MinecraftDownload/solaris_natives.jar.lzma
http://s3.amazonaws.com/MinecraftDownload/windows_natives.jar.lzma
EOF
echo "Uncompressing natives..."
lzma -dk \
linux_natives.jar.lzma \
macosx_natives.jar.lzma \
solaris_natives.jar.lzma \
windows_natives.jar.lzma
# done
echo "Content downloaded."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment