summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-09-13 00:55:02 -0300
committerJesusaves <cpntb1@ymail.com>2020-09-13 00:55:02 -0300
commit2ef4e8700a5acd5ea4bd79c9b636004df7002118 (patch)
tree8495b5b2c756c8011401b5aba3493c504656b182
parent78f07a85e0e1f638a508fbdab7059d49afd0d422 (diff)
downloadtools-2ef4e8700a5acd5ea4bd79c9b636004df7002118.tar.gz
tools-2ef4e8700a5acd5ea4bd79c9b636004df7002118.tar.bz2
tools-2ef4e8700a5acd5ea4bd79c9b636004df7002118.tar.xz
tools-2ef4e8700a5acd5ea4bd79c9b636004df7002118.zip
`make news` will now update gameinfo (if possible) as well!
-rw-r--r--Makefile2
-rwxr-xr-xweb/gameinfo.sh18
2 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7326412..c71adc5 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,8 @@ news:
@cd ../web ; echo "Checking for web/ folder..." # check if web directory exists
cd web ; ./deploy.sh
@echo "News updated, please commit result on web."
+ @cd ../gameinfo-api ; echo "Checking for gameinfo-api/ folder..." # check
+ cd web ; ./gameinfo.sh
.PHONY: client
client:
diff --git a/web/gameinfo.sh b/web/gameinfo.sh
new file mode 100755
index 0000000..0a19e5d
--- /dev/null
+++ b/web/gameinfo.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+echo "Begin - Gameinfo updater. User input required."
+cd ../../gameinfo-api
+
+cd serverdata
+git pull --rebase -X theirs
+cd ..
+
+cd clientdata
+git pull --rebase -X theirs
+cd ..
+
+git commit -a
+git push
+
+echo "Gameinfo updated!"
+