URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 330 |
Rev 513 |
#!/bin/sh -e
|
#!/bin/sh -e
|
|
|
if test $# -lt 3
|
if test $# -lt 3
|
then
|
then
|
echo "Usage: $0 ..." 1>&2
|
echo "Usage: $0 ..." 1>&2
|
exit 0
|
exit 0
|
fi
|
fi
|
|
|
xgettext=$1 ; shift
|
xgettext=$1 ; shift
|
package=$1 ; shift
|
package=$1 ; shift
|
|
|
for d in "$@"
|
for d in "$@"
|
do
|
do
|
__directories="$__directories --directory=$d"
|
__directories="$__directories --directory=$d"
|
done
|
done
|
|
|
for d in "$@"
|
for d in "$@"
|
do
|
do
|
(
|
(
|
cd $d
|
cd $d
|
find * \
|
find * \
|
-name '*-stub.c' -prune -o \
|
-name '*-stub.c' -prune -o \
|
-name 'testsuite' -prune -o \
|
-name 'testsuite' -prune -o \
|
-name 'init.c' -prune -o \
|
-name 'init.c' -prune -o \
|
-name '*.[hc]' -print
|
-name '*.[hc]' -print
|
)
|
)
|
done | ${xgettext} \
|
done | ${xgettext} \
|
--default-domain=${package} \
|
--default-domain=${package} \
|
--copyright-holder="Free Software Foundation, Inc." \
|
--copyright-holder="Free Software Foundation, Inc." \
|
--add-comments \
|
--add-comments \
|
--files-from=- \
|
--files-from=- \
|
--force-po \
|
--force-po \
|
--debug \
|
--debug \
|
--language=c \
|
--language=c \
|
--keyword=_ \
|
--keyword=_ \
|
--keyword=N_ \
|
--keyword=N_ \
|
${__directories} \
|
${__directories} \
|
-o po/${package}.pot
|
-o po/${package}.pot
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.