Skip to content

Instantly share code, notes, and snippets.

@egg82
Created July 23, 2017 18:24
Show Gist options
  • Save egg82/15c7afe4b9ef0ad34862214bc0b30e08 to your computer and use it in GitHub Desktop.
Save egg82/15c7afe4b9ef0ad34862214bc0b30e08 to your computer and use it in GitHub Desktop.
#!/bin/bash
rm -f BuildTools.jar
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
build() {
version=$1
mkdir -p $version
mkdir -p Build-$version
cd Build-$version
java -jar ../BuildTools.jar --rev $version
cp craftbukkit-*.jar ../$version/
cp spigot-*.jar ../$version/
cd ..
}
git config --global --unset core.autocrlf
build "1.8"
build "1.8.3"
build "1.8.8"
build "1.9"
build "1.9.2"
build "1.9.4"
build "1.10.2"
build "1.11"
build "1.11.2"
build "1.12"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment