summaryrefslogtreecommitdiff
path: root/tools/client-updates/src/client-updates-news
diff options
context:
space:
mode:
Diffstat (limited to 'tools/client-updates/src/client-updates-news')
-rwxr-xr-xtools/client-updates/src/client-updates-news14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/client-updates/src/client-updates-news b/tools/client-updates/src/client-updates-news
new file mode 100755
index 00000000..bc78e4ef
--- /dev/null
+++ b/tools/client-updates/src/client-updates-news
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# config
+SRC=$(dirname $(readlink -f "$0"))
+
+. ${SRC}/client-updates.conf
+
+# Edit news.txt
+nano "${UPDATES_DIR}"/release/news.txt
+
+# Commit if changed
+cd "${UPDATES_DIR}"
+git status | grep -q 'news.txt' && { git add release/news.txt; git commit -m 'Updating news.txt' > /dev/null; }
+cd - > /dev/null