summaryrefslogtreecommitdiffstats
path: root/private/gen-po4a-conf
blob: 6d534f49bc698579d371439fe1e1927a81cf8df4 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

CFG="$1"
cp -f "$CFG".in "$CFG"
# Map a CHECK (e.g. python/depends or fields) to
#  [type: lintian] checks/CHECK.desc \$lang:l10n/checks/CHECK_\$lang.desc
#
# sort is not strictly necessary, but it makes it easier to review.
find checks/ -name '*.desc' | LC_ALL=C.UTF-8 sort | \
   perl -ne 'chomp; $file = $_; s{^checks/(.+)\.desc$}{$1}; print "[type: lintian] $file \$lang:l10n/checks/${_}_\$lang.desc\n";' >> "$CFG";