3 top_srcdir
=@top_srcdir@
5 version
="@PACKAGE_VERSION@"
10 outdir
=${top_srcdir}/po
/${domain}
11 outfile
=${outdir}/${domain}.pot
13 test -d $outdir || mkdir
$outdir
16 --package-name="${name}" \
17 --package-version="${version}" \
19 --default-domain=${domain} \
26 test -f ${outfile}.new
&& \
27 perl
-pi -e "s@${top_srcdir}/@@" ${outfile}.new
29 grep -v "POT-Creation-Date:" ${outfile}.new
> ${outfile}.new2
30 grep -v "POT-Creation-Date:" ${outfile} > ${outfile}.old
32 if ! diff ${outfile}.old
${outfile}.new2
>/dev
/null
; then
33 echo "${outfile} changed"
34 cp ${outfile}.new
${outfile}
36 rm ${outfile}.new
* ${outfile}.old