Trying and failing to get Purugin working

This commit is contained in:
Dan Buch 2015-04-25 08:03:32 -04:00
parent d246e8fa17
commit 0a4dc842c6
3 changed files with 35 additions and 6 deletions

5
bukkit/.gitignore vendored
View File

@ -16,3 +16,8 @@ world/
world_nether/ world_nether/
world_the_end/ world_the_end/
plugins/ plugins/
jruby-complete.jar
banned-ips.txt
banned-players.txt
ops.txt
white-list.txt

View File

@ -1,14 +1,36 @@
CRAFTBUKKIT_VERSION := 1.8.3-R0.1-SNAPSHOT-latest CRAFTBUKKIT_VERSION := 1.7.2-R0.2
CRAFTBUKKIT_FULL_VERSION := 1.7.2-R0.4-20140216.012104-3
PURUGIN_VERSION := 0.7.1
DEPS := \
craftbukkit.jar \
eula.txt \
plugins/Purugin.jar \
jruby-complete.jar
.PHONY: all .PHONY: all
all: deps all: deps
.PHONY: deps .PHONY: deps
deps: craftbukkit.jar eula.txt deps: $(DEPS)
.PHONY: clean
clean:
rm -vf $(DEPS)
craftbukkit.jar: craftbukkit.jar:
curl -SL --progress -o $@ \ curl -SL --progress -o $@ \
http://tcpr.ca/download/craftbukkit/craftbukkit-$(CRAFTBUKKIT_VERSION).jar http://tcpr.ca/download/craftbukkit/craftbukkit-$(CRAFTBUKKIT_FULL_VERSION).jar
eula.txt: eula.txt:
echo "eula=true" > $@ echo "eula=true" > $@
plugins/Purugin.jar: plugins
curl -SL --progress -o $@ \
http://dev.bukkit.org/media/files/765/560/purugin-$(PURUGIN_VERSION)-bukkit-$(CRAFTBUKKIT_VERSION).jar
plugins:
mkdir -p $@
jruby-complete.jar:
curl -SL --progress -o $@ \
https://s3.amazonaws.com/jruby.org/downloads/1.7.19/jruby-complete-1.7.19.jar

View File

@ -1,10 +1,12 @@
#!/bin/bash #!/bin/bash
set -o errexit set -o errexit
: ${JAVA_OPTS:=-Xmx1G}
: ${BUKKIT_ARGS:=-o true}
TOP=$(dirname ${BASH_SOURCE[0]}) TOP=$(dirname ${BASH_SOURCE[0]})
cd "${TOP}" cd "${TOP}"
: ${JAVA_OPTS:=-Xmx1G -cp "${TOP}/jruby-complete.jar"}
: ${BUKKIT_ARGS:=-o true}
: ${GEM_HOME:=${TOP}/gems}
set -x
exec java ${JAVA_OPTS} -jar "${TOP}/craftbukkit.jar" ${BUKKIT_ARGS} exec java ${JAVA_OPTS} -jar "${TOP}/craftbukkit.jar" ${BUKKIT_ARGS}