mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
7055827b8f
This makes it clearer that we always want to do heimdal changes via the lorikeet-heimdal repository. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Autobuild-User(master): Joseph Sutton <jsutton@samba.org> Autobuild-Date(master): Wed Jan 19 21:41:59 UTC 2022 on sn-devel-184
40 lines
799 B
Bash
40 lines
799 B
Bash
#!/bin/sh
|
|
|
|
top_srcdir=@top_srcdir@
|
|
name="@PACKAGE_NAME@"
|
|
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}" \
|
|
--foreign-user \
|
|
--default-domain=${domain} \
|
|
--add-comments \
|
|
--keyword=N_ \
|
|
--keyword=NP_ \
|
|
-o ${outfile}.new \
|
|
"$@"
|
|
|
|
test -f ${outfile}.new && \
|
|
perl -pi -e "s@${top_srcdir}/@@" ${outfile}.new
|
|
|
|
grep -v "POT-Creation-Date:" ${outfile}.new > ${outfile}.new2
|
|
grep -v "POT-Creation-Date:" ${outfile} > ${outfile}.old
|
|
|
|
if ! diff ${outfile}.old ${outfile}.new2 >/dev/null; then
|
|
echo "${outfile} changed"
|
|
cp ${outfile}.new ${outfile}
|
|
fi
|
|
rm ${outfile}.new* ${outfile}.old
|
|
|
|
exit 0
|
|
|