A feature-rich Minecraft plugin which enhances gaming experience
git clone git://soophie.de/poppy
blob: 0e6d42d1677fbce8271e01e04ee441ac73829a34 (524 bytes)[doc][blame][raw]
1
#!/bin/bash3
path=$(pwd)5
if [[ ! -z $1 ]]; then6
if [ $1 = "--path" ]; then7
if [[ -z $2 ]]; then8
echo "Invalid arguments '--path <directory>'!"9
exit 010
fi11
path=$212
fi13
fi15
if [ ! -d $path ]; then16
echo "Unable to find directory '$path'!"17
exit 018
fi20
if [ ! -f "$(pwd)/plugin.yml" ]; then21
echo "Unable to find plugin.yml in '$(pwd)'!"22
exit 023
fi25
jar cf "$path/MinecraftHub.jar" plugin.yml lib/* -C bin .26
if [ $? = "0" ]; then27
echo "Successfully compile into $path/MinecraftHub.jar"28
else29
echo "Build failed!"