diff options
author | Karel Kočí <cynerd@email.cz> | 2016-03-31 00:29:17 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-03-31 00:29:17 +0200 |
commit | 2a8ad733fb5dc2e763256207332e42c90a3d6a6d (patch) | |
tree | 662f4ada3b65780660a43a868e7ae97181da0792 /tests/prepare.sh | |
parent | 7c635fe498b2c7d158a44ceaa525fe7317adb079 (diff) | |
download | mcserver-wrapper-2a8ad733fb5dc2e763256207332e42c90a3d6a6d.tar.gz mcserver-wrapper-2a8ad733fb5dc2e763256207332e42c90a3d6a6d.tar.bz2 mcserver-wrapper-2a8ad733fb5dc2e763256207332e42c90a3d6a6d.zip |
Setting up Python package
Adding support for installing using pip. This will be default way to
install mcwrapper.
Diffstat (limited to 'tests/prepare.sh')
-rwxr-xr-x | tests/prepare.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/prepare.sh b/tests/prepare.sh deleted file mode 100755 index 17e466d..0000000 --- a/tests/prepare.sh +++ /dev/null @@ -1,27 +0,0 @@ -#~/bin/bash -if [[ "$(basename -- "$0")" = "prepare.sh" ]]; then - echo "Please only source this script" - exit 1 -fi - -if [[ $PREPARED != "y" ]]; then - # Move to known directory - cd "$( readlink -f "${BASH_SOURCE[0]}" )" - - if [[ $MCSERVERS == "y" ]]; then - mkdir -p minecraft-server - echo "eula=true" > minecraft-server/eula.txt - # Get Minecraft 1.8.8 - [ -f minecraft-server/minecraft_server.1.8.8.jar ] || \ - wget https://s3.amazonaws.com/Minecraft.Download/versions/1.8.8/minecraft_server.1.8.8.jar -O minecraft-server/minecraft_server.1.8.8.jar - # Get Minecraft 1.9 - [ -f minecraft-server/minecraft_server.1.9.jar ] || \ - wget https://s3.amazonaws.com/Minecraft.Download/versions/1.9/minecraft_server.1.9.jar -O minecraft-server/minecraft_server.1.9.jar - function mcservers_clean { - find minecraft-server | tail -n +2 | egrep -v "minecraft_server.*jar" | egrep -v "eula.txt" | xargs rm -rf - } - fi - - export PATH=$( realpath .. ):$PATH - export PREPARED="y" -fi |