forked from freevo/freevo1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautogen.sh
executable file
·59 lines (50 loc) · 1.03 KB
/
autogen.sh
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
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env bash
# autogen.sh
#
# Dirk Meyer <[email protected]>
# $Id$
gen_i18n() {
for file in $(find i18n -name freevo.po); do
out=$(echo $file | sed 's/\.po$/.mo/')
echo generating $out
msgfmt -o $out $file 2> /dev/null
done
}
docbook () {
echo
echo generating $1 howto html files
cd Docs/$1
docbook2html -o html howto.sgml
cd ../..
echo
echo
}
howto() {
docbook installation
docbook plugin_writing
}
mkhtmldir() {
if [ ! -e Docs/installation/html ]; then mkdir Docs/installation/html; fi
}
# main
case "$1" in
nodocs)
gen_i18n
mkhtmldir
;;
howto)
howto
;;
-h|--help|help)
echo -n "usage: "
echo $0
echo " nodocs - just generate translations"
echo " howto - just generate the docbook howto"
echo " <default> - generate translations and generate howto"
;;
*)
gen_i18n
howto
;;
esac
# end of autogen.sh