so://phie

poppy

A feature-rich Minecraft plugin which enhances gaming experience
git clone git://soophie.de/poppy

blob: 0e6d42d1677fbce8271e01e04ee441ac73829a34 (524 bytes)[doc][blame][raw]

1#!/bin/bash

2

3path=$(pwd)

4

5if [[ ! -z $1 ]]; then

6 if [ $1 = "--path" ]; then

7 if [[ -z $2 ]]; then

8 echo "Invalid arguments '--path <directory>'!"

9 exit 0

10 fi

11 path=$2

12 fi

13fi

14

15if [ ! -d $path ]; then

16 echo "Unable to find directory '$path'!"

17 exit 0

18fi

19

20if [ ! -f "$(pwd)/plugin.yml" ]; then

21 echo "Unable to find plugin.yml in '$(pwd)'!"

22 exit 0

23fi

24

25jar cf "$path/MinecraftHub.jar" plugin.yml lib/* -C bin .

26if [ $? = "0" ]; then

27 echo "Successfully compile into $path/MinecraftHub.jar"

28else

29 echo "Build failed!"