blob: 3003cf9449765d53ab205768fac72a7f16fe2491 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/bin/bash
# This script holds utilities for Karma lessons
# MIT License
# copyright 2009 Bryan W Berry, Christoph Derndorfer
NARWHAL=./utils/bin/narwhal
kgettext() {
if [ -z ./narwhal/bin ] ; then
echo "You need narwhal js interpreter in order to proceed"
exit 1
fi
$NARWHAL ./utils/karma.js $@
exit 0
}
kmakechakra() {
if [ -z ./narwhal/bin ] ; then
echo "You need narwhal js interpreter in order to proceed"
exit 1
fi
$NARWHAL ./utils/chakra.js $@
exit 0
}
case "$1" in
"--gettext")
shift
kgettext $@
;;
"--makechakra")
shift
kmakechakra $@
;;
"--help")
echo "Usage: --gettext html_file.html target_file.po"
;;
*)
echo "Usage: --gettext html_file.html target_file.po"
;;
esac
|