Paste #eJKIveD6iPKkplJVj0Xo

Makefile-orig [2015-03-08 03:07:06.282387571 +0100]
Makefile [2015-03-08 05:52:04.594463415 +0100]
5 5 $(shell cd desktop-guide && ../scripts/translate.sh -u >/dev/null)
6 6 TRANSLATIONS=$(shell cat desktop-guide/po/LINGUAS)
7 7 else
8 TRANSLATIONS=$(shell basename -s .po -a desktop-guide/po/*po)
8 TRANSLATIONS=$(shell basename -s .po -a desktop-guide/po/*.po)
9 9 endif
10 10
11 11 all: clean desktop-guide startpage translate
25 25 cp startpage/*.png build/about/
26 26 cp startpage/xubuntu-index-start.htx build/about/xubuntu-index.html
27 27 for lang in $(TRANSLATIONS); do \
28 echo -n "\t\t\t<li><a href=\"../$$lang/index.html\">"; grep Language-Team: desktop-guide/po/$$lang.po | awk '{print $$2 "</a></li>"}'; \
28 awk -v lang="$$lang" '$$1 == lang {print "\t\t\t<li><a href=\"../" lang "/index.html\">" $$2 "</a></li>"; f=1; exit} END {exit !f}' desktop-guide/po/LINGUANAMES || \
29 awk -v lang="$$lang" '$$1 == "\"Language-Team:" {print "\t\t\t<li><a href=\"../" lang "/index.html\">" $$2 "</a></li>"; exit}' desktop-guide/po/$$lang.po; \
29 30 done >> build/about/xubuntu-index.html
30 31 cat startpage/xubuntu-index-end.htx >> build/about/xubuntu-index.html
31 32