blob: 6cabe712c55c8d90c35049b93f1f7690af5eb2a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
#
# Copyright (C) 2009 Karel Zak <kzak@redhat.com>
#
# find all *.c files,
# sort the list
# exclude ./tests/ from the list
# and remove "./" prefix
[ ! -f "po/Makevars" ] && \
echo "You must run this script in the top-level directory"
find -name "*.c" | \
sort | \
gawk '! /^\.\/tests\// { print gensub(/^\.\//, "", 1) }' \
> po/POTFILES.in
|