summaryrefslogtreecommitdiff
path: root/po/update-potfiles
blob: b46ca0e1acafe04a9fb2f9c7adcc19d9f8b8c4e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ ! -f "po/Makevars" ]; then
	echo "You must run this script in the top-level directory"
	exit 1
fi

find . -name '*.c' |
	sort |
	sed 's|^./||
/^contrib/d' > po/POTFILES.in

echo include/c.h >> po/POTFILES.in