3 ## Copyright (C) 1996-2017 The Squid Software Foundation and contributors
5 ## Squid software is distributed under GPLv2+ license and includes
6 ## contributions from numerous individuals and organizations.
7 ## Please see the COPYING and CONTRIBUTORS files for details.
11 # Update the core errpages.pot file from the basic templates
12 # Useful if any template has altered.
14 # To be run during maintenance from the main squid directory
17 ## Begin errors/ Updates.
20 # Make sure any existing temp stuff is gone from previous updates...
22 rm -f errpages.pot.new
25 # make a temp directory for all our workings...
28 # Generate per-page dictionaries ...
29 for f
in `ls -1 ./templates/`; do
32 ..
/scripts
/mk-error-details-po.pl .
/templates
/${f} > .
/pot
/${f}.pot
35 html2po
-i .
/templates
/${f} -P --duplicates=merge
-o .
/pot
/${f}.pot
42 # merge and sort the per-page .pot into a single master
43 msgcat .
/pot
/*.pot
-s -o errpages.pot.new
&&
45 cat errpages.pot.new |
46 sed s
/PACKAGE\ VERSION
/Squid-
3/ |
47 sed s
/LANGUAGE\ \
<LL\@li\.org\
>/Squid\ Developers\ \
<squid-dev\@squid-cache\.org\
>/
50 ## Update all existing dictionaries with the new content ...
51 for f
in `ls -1 ./*.po` ; do
52 echo -n "Update: ${f} ... "
53 msgmerge
--verbose -s -o ${f}.new
${f} errpages.pot
54 chown
--reference=${f} ${f}.new
60 rm -f errpages.pot.new
62 ## Done errors/ Updates
65 ## begin doc/manuals updates
68 cat doc
/po4a.cnf
>po4a.conf
69 for f
in `ls -1 helpers/*/*/*.8 src/*.8.in tools/*/*.1 tools/*.8.in` ; do
72 echo "[type: man] ${f} \$lang:doc/manuals/\$lang/${manp}" >>po4a.conf
75 ## po4a conversion of all doc/manuals man files...
76 po4a
--no-translations -o groff_code
=verbatim
--verbose po4a.conf
79 cat doc
/manuals
/manuals.pot |
80 sed s
/PACKAGE\ VERSION
/Squid-
3/ |
81 sed s
/LANGUAGE\ \
<LL\@li\.org\
>/Squid\ Developers\ \
<squid-dev\@squid-cache\.org\
>/
82 ) >doc
/manuals
/manuals.pot.tmp
83 mv doc
/manuals
/manuals.pot.tmp
doc
/manuals
/manuals.pot
85 ## Done doc/manuals/ Update