summaryrefslogtreecommitdiffstats
path: root/about/create_html.sh
blob: dffe42fb20725b160aa1c70466a9020b880c0e43 (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
#!/bin/sh

BASEDIR=".."
XMLFILE="index.html.in"
PODIR='./po'
HTMLDIR='./html'

if [ ! -d $HTMLDIR ]; then
        mkdir $HTMLDIR
fi

cd $HTMLDIR

intltool-merge --xml-style -m ../${PODIR} ../${XMLFILE} index.html

for indexdir in `ls`; do
        mv $indexdir/index.html index-$indexdir.html
        rm -rf $indexdir
done

if [ -e "index-C.html" ]; then
        mv index-C.html index.html
fi

cd ..
intltool-merge --desktop-style -m po about-mageia.desktop.in about-mageia.desktop