From 7c2ee1d26cc5de6540f5bca89a7d91bcd076ceb4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 29 Dec 2010 20:51:58 +0100 Subject: build-sys: remove generated po/POTFILES.in Signed-off-by: Karel Zak --- po/update-potfiles | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'po/update-potfiles') diff --git a/po/update-potfiles b/po/update-potfiles index 1de3e3a3a..6cabe712c 100755 --- a/po/update-potfiles +++ b/po/update-potfiles @@ -5,9 +5,13 @@ # find all *.c files, # sort the list -# exclude ../tests/ from the list -# and remove "../" prefix +# exclude ./tests/ from the list +# and remove "./" prefix -find ../ -name "*.c" | \ -sort | \ -gawk '! /^\.\.\/tests\// { print gensub(/^\.\.\//, "", 1) }' > POTFILES.in +[ ! -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 -- cgit v1.2.3-55-g7522