summaryrefslogtreecommitdiff
path: root/web
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 /web
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!
Diffstat (limited to 'web')
-rwxr-xr-xweb/gameinfo.sh18
1 files changed, 18 insertions, 0 deletions
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!"
+