3 . `dirname $0`/../config.sh
10 lib/Packages/DoDownload.pm
11 lib/Packages/DoFilelist.pm
12 lib/Packages/DoIndex.pm
13 lib/Packages/DoNewPkg.pm
14 lib/Packages/DoSearch.pm
15 lib/Packages/DoSearchContents.pm
16 lib/Packages/DoShow.pm
18 lib/Packages/Search.pm
19 lib/Packages/SrcPage.pm
20 lib/Packages/Template.pm
21 lib/Packages/Dispatcher.pm
22 bin/create_index_pages
26 templates/config/architectures.tmpl
27 templates/config/archive_layout.tmpl
28 templates/config/mirrors.tmpl
29 templates/html/download.tmpl
30 templates/html/error.tmpl
31 templates/html/filelist.tmpl
32 templates/html/foot.tmpl
33 templates/html/head.tmpl
34 templates/html/homepage.tmpl
35 templates/html/index_head.tmpl
36 templates/html/index_foot.tmpl
37 templates/html/messages.tmpl
38 templates/html/newpkg.tmpl
39 templates/html/search.tmpl
40 templates/html/search_contents.tmpl
41 templates/html/show.tmpl
42 templates/html/suite_index.tmpl
43 templates/html/tag_index.tmpl
44 templates/html/util.inc
45 templates/rfc822/search.tmpl
46 templates/rss/newpkg.tmpl
47 templates/txt/index_head.tmpl
48 templates/txt/index_foot.tmpl
50 podomains="pdo templates sections langs debtags"
54 # Common options for all calls
55 xgettext_opts="--language=Perl --keyword=N_ --keyword=g --foreign-user --add-comments"
57 echo gettextfiles=$gettextfiles
58 echo templatefiles=$templatefiles
59 xgettext $xgettext_opts -d pdo -o ${podir}/pdo.pot.new ${gettextfiles}
60 xgettext $xgettext_opts -d sections -o ${podir}/sections.pot.new ${libdir}/Packages/Sections.pm
61 xgettext $xgettext_opts -d langs -o ${podir}/langs.pot.new ${libdir}/Packages/I18N/LanguageNames.pm
62 $topdir/bin/ttxgettext templates ${templatefiles} >${podir}/templates.pot.new
63 if [ -f files/debtags/vocabulary ]; then
64 $topdir/bin/debtags-xgettext files/debtags/vocabulary >${podir}/debtags.pot.new
69 # Create missing po files
71 for lang in ${polangs}
73 for domain in ${podomains}
75 test -f ${domain}.${lang}.po || cp ${domain}.pot ${domain}.${lang}.po
79 # normalize paths in .pot files
80 for domain in ${podomains}
82 perl -p -i -e "s,^#:\s*\Q${topdir}\E,#: .,go" ${domain}.pot.new
83 if [ ! -f ${domain}.pot.new ] || diff -I"POT-Creation-Date" -I"^#: " -q ${domain}.pot.new ${domain}.pot >/dev/null 2>&1
85 echo "${domain}.pot unchanged"
88 echo "${domain}.pot changed"
89 mv ${domain}.pot.new ${domain}.pot
91 for lang in ${polangs}
93 echo " update ${domain}.${lang}.po"
94 cp ${domain}.${lang}.po ${domain}.${lang}.po.tmp
95 msgmerge --previous --quiet --sort-by-file -o ${domain}.${lang}.po ${domain}.${lang}.po.tmp ${domain}.pot
96 rm ${domain}.${lang}.po.tmp
97 # normalize paths in .po files
98 perl -p -i -e "s,^#:\s*\Q${topdir}\E,#: .,go" ${domain}.${lang}.po
104 for lang in ${polangs}
107 echo "Statistics about $lang:"
108 for po in *.${lang}.po
111 LANG=C msgfmt --statistics --check-format -o- $po >/dev/null