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:
Love Hörnquist Åstrand
2008-09-07 21:13:13 +00:00
parent 21bf016cd9
commit 7fe1196c96
22 changed files with 4304 additions and 25 deletions

View File

@@ -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