aboutsummaryrefslogtreecommitdiffstats
path: root/docs/docs/stable/mcc-help/update.sh
diff options
context:
space:
mode:
authorYuri Chornoivan <yurchor@ukr.net>2018-02-23 20:34:43 +0200
committerYuri Chornoivan <yurchor@ukr.net>2018-02-23 20:34:43 +0200
commit89f013bb4d68b0df17131df47f320ab4a44f060f (patch)
tree3a8a398ff40d57cc86940f295c97509802935f32 /docs/docs/stable/mcc-help/update.sh
parentcd4e1a8183a04d6067bdfa2894b64da8ec339c93 (diff)
downloadtools-89f013bb4d68b0df17131df47f320ab4a44f060f.tar
tools-89f013bb4d68b0df17131df47f320ab4a44f060f.tar.gz
tools-89f013bb4d68b0df17131df47f320ab4a44f060f.tar.bz2
tools-89f013bb4d68b0df17131df47f320ab4a44f060f.tar.xz
tools-89f013bb4d68b0df17131df47f320ab4a44f060f.zip
Create stable folder and move stable docs there
Diffstat (limited to 'docs/docs/stable/mcc-help/update.sh')
-rwxr-xr-xdocs/docs/stable/mcc-help/update.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/docs/stable/mcc-help/update.sh b/docs/docs/stable/mcc-help/update.sh
new file mode 100755
index 00000000..ef7b60f7
--- /dev/null
+++ b/docs/docs/stable/mcc-help/update.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+POFILE=$1
+
+if [[ $POFILE == "" ]]; then
+ for i in *.po
+ do
+ echo -n $i": "
+ msgmerge --backup=none --update $i mcc-help.pot && \
+ msgfmt -o /dev/null --statistics --check $i
+ done
+else
+ echo -n $1".po: "
+ msgmerge --backup=none --update $1.po mcc-help.pot && \
+ msgfmt -o /dev/null --statistics --check $1.po
+fi