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