summaryrefslogtreecommitdiff
path: root/client/client-updates/src/client-updates-news
diff options
context:
space:
mode:
authorVincent Petithory <vincent.petithory@gmail.com>2013-01-20 23:22:56 +0100
committerVincent Petithory <vincent.petithory@gmail.com>2013-01-20 23:22:56 +0100
commitfa2192520e55ed384d838741697d1ee8ff571f52 (patch)
tree11dc118168dc4df428ce0af9af488b33fbd1328b /client/client-updates/src/client-updates-news
parent93b5fb8cd41c3330bad339129a330d1fa738019d (diff)
downloadtools-fa2192520e55ed384d838741697d1ee8ff571f52.tar.gz
tools-fa2192520e55ed384d838741697d1ee8ff571f52.tar.bz2
tools-fa2192520e55ed384d838741697d1ee8ff571f52.tar.xz
tools-fa2192520e55ed384d838741697d1ee8ff571f52.zip
Add Client updates tools to generate zip updates.
Diffstat (limited to 'client/client-updates/src/client-updates-news')
-rwxr-xr-xclient/client-updates/src/client-updates-news14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/client-updates/src/client-updates-news b/client/client-updates/src/client-updates-news
new file mode 100755
index 0000000..bc78e4e
--- /dev/null
+++ b/client/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