finish support for libintl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23752 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
12
po/gen-po.in
12
po/gen-po.in
@@ -7,6 +7,11 @@ version="@PACKAGE_VERSION@"
|
||||
domain=$1
|
||||
shift
|
||||
|
||||
outdir=${top_srcdir}/po/${domain}
|
||||
outfile=${outdir}/${domain}.pot
|
||||
|
||||
test -d $outdir || mkdir $outdir
|
||||
|
||||
xgettext \
|
||||
--package-name="${name}" \
|
||||
--package-version="${version}" \
|
||||
@@ -14,10 +19,13 @@ xgettext \
|
||||
--default-domain=${domain} \
|
||||
--add-comments \
|
||||
--keyword=N_ \
|
||||
-o ${domain}.pot \
|
||||
-o ${outfile} \
|
||||
"$@"
|
||||
|
||||
test -f ${domain}.pot && perl -pi -e "s@$top_srcdir/@@" ${domain}.pot
|
||||
test -f ${outfile} && \
|
||||
perl -pi -e "s@${top_srcdir}/@@" ${outfile}
|
||||
|
||||
diff ${outfile} ${outfile}
|
||||
|
||||
exit 0
|
||||
|
||||
|
Reference in New Issue
Block a user