summaryrefslogtreecommitdiff
path: root/build/gen-linguas.sh
blob: b8e3ceb97880b1458b0877591552f368ff6b565e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

lings_new="LINGUAS.new.$$"
lings="LINGUAS"

# create LINGUAS file: every .po is included
cd po
ls -1 *.po | sort -u | sed -e 's/.po$//' >"$lings_new"

if test -f "$lings" && cmp -s "$lings" "$lings_new"
then
    rm "$lings_new"
else
    mv "$lings_new" "$lings"
fi