view po/update-potfiles.sh @ 2689:996281c0a457

Add a NULL check to avoid an idiotic crash. (This bug also revealed a problem in commandline handling - URIs are not constructed properly.)
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 06 Jun 2008 13:41:12 +0300
parents be52c86750d7
children
line wrap: on
line source

#!/bin/bash
rm POTFILES*
echo "# Please don't update this file manually - use ./update-potfiles.sh instead!" > POTFILES.in
cd ..
find src/ \( -name "*.c" -o -name "*.cxx" -o -name "*.cc" -o -name "*.glade" \) -exec grep -lE "translatable|_\(" \{\} \; | sort | uniq >> po/POTFILES.in