Avoid confusing solver decisions by not storing soft locks (bnc#863275)
[platform/upstream/libzypp.git] / po / createPot
1 #!/bin/bash
2 SOURCE_DIR="${1:-..}"
3 POTFILE="${2:-po/zypp.pot}"
4 # search for sourcecode-files
5 cd "$SOURCE_DIR"
6 SRCFILES=`find examples tools zypp \
7                            -type f -name "*.h" \
8                                 -o -name "*.pm"  \
9                                 -o -name "*.c"   \
10                                 -o -name "*.cc"  \
11                                 -o -name "*.cpp"`
12 #calling xgettext with the sourcefiles
13 xgettext -s --no-wrap --add-comments --add-location --keyword=_ --keyword=_:1,2 --keyword=__ --keyword=N_ --foreign-user --copyright-holder="SuSE Linux Products GmbH, Nuernberg" --default-domain=libzypp --output="$POTFILE" $SRCFILES