make work

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23753 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-09-07 21:14:18 +00:00
parent 7fe1196c96
commit 1b18561417
14 changed files with 35 additions and 28 deletions

View File

@@ -19,13 +19,20 @@ xgettext \
--default-domain=${domain} \
--add-comments \
--keyword=N_ \
-o ${outfile} \
-o ${outfile}.new \
"$@"
test -f ${outfile} && \
perl -pi -e "s@${top_srcdir}/@@" ${outfile}
test -f ${outfile}.new && \
perl -pi -e "s@${top_srcdir}/@@" ${outfile}.new
diff ${outfile} ${outfile}
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