summaryrefslogtreecommitdiff
path: root/mnv/src/po/tojavascript.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/src/po/tojavascript.mnv')
-rw-r--r--mnv/src/po/tojavascript.mnv24
1 files changed, 0 insertions, 24 deletions
diff --git a/mnv/src/po/tojavascript.mnv b/mnv/src/po/tojavascript.mnv
deleted file mode 100644
index 384ca744eb..0000000000
--- a/mnv/src/po/tojavascript.mnv
+++ /dev/null
@@ -1,24 +0,0 @@
-" Invoked with the name "mnv.pot" and a list of MNV script names.
-" Converts them to a .js file, stripping comments, so that xgettext works.
-" Javascript is used because, like MNV, it accepts both single and double
-" quoted strings.
-
-set shortmess+=A
-
-let s:namenum = 0
-let s:fls = []
-for s:name in argv()[1:]
- exe 'edit ' .. fnameescape(s:name)
-
- " Strip comments, also after :set commands.
- g/^\s*"/s/.*//
- g/^\s*set .*"/s/.*//
-
- " Write as .js file, xgettext recognizes them
- let s:fl = fnamemodify(s:name, ":t:r") .. s:namenum .. ".js"
- exe 'w! ' .. s:fl
- call add(s:fls, s:fl)
- let s:namenum += 1
-endfor
-call writefile(s:fls, "mnv_to_js")
-quit