Paste #eJKIveD6iPKkplJVj0Xo
| 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/* |
|
| 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 | |
|
| 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 | |