Script cleanup
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Backing up all databases."
|
||||
echo ""
|
||||
sudo make backup
|
||||
echo ""
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
echo Backing up all databases.
|
||||
echo:
|
||||
Windows\make backup-windows
|
||||
echo:
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
echo Cloning the game repository.
|
||||
Windows\make clone-windows-game
|
||||
echo:
|
||||
echo:
|
||||
echo Cloning the website repository.
|
||||
echo:
|
||||
Windows\make clone-windows-website
|
||||
echo:
|
||||
echo:
|
||||
echo Cloning the wiki repository.
|
||||
echo:
|
||||
Windows\make clone-windows-wiki
|
||||
echo:
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
echo Cloning the game repository.
|
||||
echo:
|
||||
Windows\make clone-windows-game
|
||||
echo:
|
||||
echo:
|
||||
echo Cloning the website repository.
|
||||
echo:
|
||||
Windows\make clone-windows-website
|
||||
echo:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
echo Cloning the game repository.
|
||||
echo:
|
||||
Windows\make clone-windows-game
|
||||
echo:
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo ""
|
||||
echo "Deleting local repositories."
|
||||
echo ""
|
||||
sudo make flush
|
||||
echo ""
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
echo Deleting local repositories.
|
||||
echo:
|
||||
Windows\make flush-windows
|
||||
echo:
|
||||
|
||||
@@ -1,4 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo make import
|
||||
echo ""
|
||||
echo "Attempting to import (or overwrite) the game database."
|
||||
echo ""
|
||||
sudo make import-game
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Attempting to import (or overwrite) the website database."
|
||||
echo ""
|
||||
sudo make import-website
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Attempting to import (or overwrite) the wiki database."
|
||||
echo ""
|
||||
sudo make import-wiki
|
||||
echo ""
|
||||
|
||||
@@ -1,7 +1,17 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
echo Attempting to import (or overwrite) the game database.
|
||||
echo:
|
||||
Windows\make import-windows-game
|
||||
echo:
|
||||
echo:
|
||||
echo Attempting to import (or overwrite) the website database.
|
||||
echo:
|
||||
Windows\make import-windows-website
|
||||
echo:
|
||||
echo:
|
||||
echo Attempting to import (or overwrite) the wiki database.
|
||||
echo:
|
||||
Windows\make import-windows-wiki
|
||||
echo:
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo ""
|
||||
echo "Restoring game databases from backup."
|
||||
echo ""
|
||||
sudo make restore
|
||||
echo ""
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
echo Restoring game databases from backup.
|
||||
echo:
|
||||
Windows\make restore-windows
|
||||
echo:
|
||||
|
||||
@@ -1,5 +1,26 @@
|
||||
#!/bin/bash
|
||||
echo "Launching in a new window. Type 'screen -r' to view the live server screen."
|
||||
echo "Use CTRL + A + D to detach the live server screen."
|
||||
|
||||
# Check for any updates to the game server
|
||||
echo "Pulling recent updates from the Open-RSC Game repository."
|
||||
echo ""
|
||||
echo ""
|
||||
sudo make pull
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
# Compile the game server
|
||||
echo "Compiling the game server."
|
||||
echo ""
|
||||
echo ""
|
||||
sudo Ant/bin/ant -f Game/server/build.xml compile
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
# Run the game server in a detached screen
|
||||
echo "Launching the game server in a new screen."
|
||||
echo ""
|
||||
echo "Type 'screen -r' to access the game server screen."
|
||||
echo "Use CTRL + A + D to detach the live server screen so it runs in the background."
|
||||
echo ""
|
||||
echo ""
|
||||
screen -dmS name ./ant_launcher.sh
|
||||
|
||||
@@ -1,12 +1,39 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check for any updates to the game server
|
||||
echo ""
|
||||
echo "Pulling recent updates from the Open-RSC Game repository."
|
||||
echo ""
|
||||
sudo make pull
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Starting any stopped Docker containers."
|
||||
echo ""
|
||||
sudo make start
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
#Compile
|
||||
# Compile the game server and client
|
||||
echo "Compiling the game client."
|
||||
echo ""
|
||||
sudo Ant/bin/ant -f Game/client/build.xml compile
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Compiling the game server."
|
||||
echo ""
|
||||
sudo Ant/bin/ant -f Game/server/build.xml compile
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
#Client
|
||||
# Rune the game client in a new window
|
||||
echo "Launching the game client."
|
||||
echo ""
|
||||
Ant/bin/ant -f Game/client/build.xml runclient &
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
#Server
|
||||
# Run the game server in the current window
|
||||
echo "Launching the game server."
|
||||
echo ""
|
||||
Ant/bin/ant -f Game/server/build.xml runserver
|
||||
echo ""
|
||||
|
||||
@@ -1,20 +1,35 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
echo Pulling recent updates from the Open-RSC Game repository.
|
||||
echo:
|
||||
Windows\make pull
|
||||
echo:
|
||||
echo:
|
||||
echo Starting any stopped Docker containers.
|
||||
echo:
|
||||
Windows\make start
|
||||
echo:
|
||||
echo:
|
||||
set PATH=Ant/bin
|
||||
echo:
|
||||
echo:
|
||||
echo Compiling the game client.
|
||||
echo:
|
||||
call ant -f Game/client/build.xml compile
|
||||
echo:
|
||||
echo:
|
||||
echo Compiling the game server.
|
||||
echo:
|
||||
call ant -f Game/server/build.xml compile
|
||||
echo:
|
||||
echo:
|
||||
echo Starting the game client in a new window.
|
||||
echo:
|
||||
call START "" ant -f Game/client/build.xml runclient
|
||||
echo:
|
||||
echo:
|
||||
echo Starting the game server in the current window.
|
||||
echo:
|
||||
call ant -f Game/server/build.xml runserver
|
||||
echo:
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo ""
|
||||
echo "Stopping the running Docker containers."
|
||||
echo ""
|
||||
echo ""
|
||||
sudo make stop
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
|
||||
@echo off
|
||||
echo:
|
||||
echo Stopping the running Docker containers.
|
||||
echo:
|
||||
Windows\make stop
|
||||
echo:
|
||||
echo:
|
||||
echo Killing any running in the background instance of the game server.
|
||||
echo:
|
||||
tskill java /a
|
||||
echo:
|
||||
|
||||
@@ -1,17 +1,9 @@
|
||||
#!/bin/bash
|
||||
echo "Pulling recent updates from the Open-RSC Game repo"
|
||||
sudo make pull
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
#Compile
|
||||
echo "Compiling the game server"
|
||||
# Run the game server
|
||||
echo ""
|
||||
echo ""
|
||||
sudo Ant/bin/ant -f Game/server/build.xml compile
|
||||
|
||||
#Run game server
|
||||
echo "Launching the game server"
|
||||
echo "Running the game server. Press CTRL + C to shut it down or"
|
||||
echo "CTRL + A + D to detached the screen so this runs in the background."
|
||||
echo ""
|
||||
echo ""
|
||||
Ant/bin/ant -f Game/server/build.xml runserver
|
||||
|
||||
Reference in New Issue
Block a user