diff --git a/po/Makefile.am b/po/Makefile.am index 1a727aaa1..955f446de 100644 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -25,34 +25,31 @@ po: gen-po.sh test -f $(top_srcdir)/po/$(ceprefix)$$base/$(ceprefix)$$base.pot || { echo "$$y missing" ; exit 1; } \ done -dist mo: +mo: cd $(srcdir) ; \ + rm localefiles ; \ + touch localefiles ; \ find . -name '*.po' | while read s ; do \ t=$$(echo $$s | sed -e 's/\.po$$/.mo/') ; \ msgfmt -o $$t $$s ; \ + echo $$t | sed 's@\./@@' >> localefiles ; \ done install-data-hook: - @for x in $(localefiles) ; do \ + @for x in `cat $(srcdir)/localefiles` ; do \ domain=`echo $$x | sed 's@/.*@@'`; \ - lang=`echo $$x | sed 's@.*/\(.*\)\\.mo@\1@'`; \ + lang=`echo $$x | sed 's@.*/\(.*\)\\.mo$$@\1@'`; \ echo "installing lang $$domain $$lang" ; \ $(top_srcdir)/install-sh -d "$(localedir)/$$lang/LC_MESSAGES" ; \ $(top_srcdir)/install-sh $(srcdir)/$$x \ "$(localedir)/$$lang/LC_MESSAGES/$$domain.mo" ; \ done - -#find . -name '*.mo' -localefiles = \ - heimdal_krb5/sv_SE.mo \ - heim_com_err-1765328384/sv_SE.mo - - -#find . -name '*.po' -or -name '*.pot -POFILES = \ +#find . -name '*.po' -or -name '*.pot' -or -name '*.mo' | sed 's/^../ /' | sed 's/$/ \\/' +FILES = \ heim_com_err-1750206208/heim_com_err-1750206208.pot \ heim_com_err-1765328384/heim_com_err-1765328384.pot \ + heim_com_err-1765328384/sv_SE.mo \ heim_com_err-1765328384/sv_SE.po \ heim_com_err-1980176640/heim_com_err-1980176640.pot \ heim_com_err-969269760/heim_com_err-969269760.pot \ @@ -63,7 +60,8 @@ POFILES = \ heim_com_err43787520/heim_com_err43787520.pot \ heim_com_err569856/heim_com_err569856.pot \ heimdal_krb5/heimdal_krb5.pot \ + heimdal_krb5/sv_SE.mo \ heimdal_krb5/sv_SE.po -EXTRA_DIST = gen-po.in $(POFILES) $(localefiles) +EXTRA_DIST = gen-po.in $(FILES) CLEANFILES = gen-po.tmp diff --git a/po/gen-po.in b/po/gen-po.in index a10453c47..402a83dee 100644 --- a/po/gen-po.in +++ b/po/gen-po.in @@ -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 diff --git a/po/heim_com_err-1750206208/heim_com_err-1750206208.pot b/po/heim_com_err-1750206208/heim_com_err-1750206208.pot index a7aa20472..b3be7a3ec 100644 --- a/po/heim_com_err-1750206208/heim_com_err-1750206208.pot +++ b/po/heim_com_err-1750206208/heim_com_err-1750206208.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heim_com_err-1765328384/heim_com_err-1765328384.pot b/po/heim_com_err-1765328384/heim_com_err-1765328384.pot index da2f88036..ae1aabadd 100644 --- a/po/heim_com_err-1765328384/heim_com_err-1765328384.pot +++ b/po/heim_com_err-1765328384/heim_com_err-1765328384.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heim_com_err-1980176640/heim_com_err-1980176640.pot b/po/heim_com_err-1980176640/heim_com_err-1980176640.pot index 9aa5caa7b..4029d09d3 100644 --- a/po/heim_com_err-1980176640/heim_com_err-1980176640.pot +++ b/po/heim_com_err-1980176640/heim_com_err-1980176640.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heim_com_err-969269760/heim_com_err-969269760.pot b/po/heim_com_err-969269760/heim_com_err-969269760.pot index de07c4a75..d16f7b6e2 100644 --- a/po/heim_com_err-969269760/heim_com_err-969269760.pot +++ b/po/heim_com_err-969269760/heim_com_err-969269760.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heim_com_err1859794432/heim_com_err1859794432.pot b/po/heim_com_err1859794432/heim_com_err1859794432.pot index 182803fce..6b5184245 100644 --- a/po/heim_com_err1859794432/heim_com_err1859794432.pot +++ b/po/heim_com_err1859794432/heim_com_err1859794432.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heim_com_err35224064/heim_com_err35224064.pot b/po/heim_com_err35224064/heim_com_err35224064.pot index 98bd769a0..0475aa856 100644 --- a/po/heim_com_err35224064/heim_com_err35224064.pot +++ b/po/heim_com_err35224064/heim_com_err35224064.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heim_com_err36150272/heim_com_err36150272.pot b/po/heim_com_err36150272/heim_com_err36150272.pot index 3dee010f9..0bedfb92b 100644 --- a/po/heim_com_err36150272/heim_com_err36150272.pot +++ b/po/heim_com_err36150272/heim_com_err36150272.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heim_com_err39525376/heim_com_err39525376.pot b/po/heim_com_err39525376/heim_com_err39525376.pot index 03ee38a6e..2abb66150 100644 --- a/po/heim_com_err39525376/heim_com_err39525376.pot +++ b/po/heim_com_err39525376/heim_com_err39525376.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heim_com_err43787520/heim_com_err43787520.pot b/po/heim_com_err43787520/heim_com_err43787520.pot index e82080301..1b5ba5609 100644 --- a/po/heim_com_err43787520/heim_com_err43787520.pot +++ b/po/heim_com_err43787520/heim_com_err43787520.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heim_com_err569856/heim_com_err569856.pot b/po/heim_com_err569856/heim_com_err569856.pot index 77e1d90bd..2913f6bcb 100644 --- a/po/heim_com_err569856/heim_com_err569856.pot +++ b/po/heim_com_err569856/heim_com_err569856.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/heimdal_krb5/heimdal_krb5.pot b/po/heimdal_krb5/heimdal_krb5.pot index bced1b6ef..2d332edef 100644 --- a/po/heimdal_krb5/heimdal_krb5.pot +++ b/po/heimdal_krb5/heimdal_krb5.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: Heimdal 1.2.99\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-09-07 14:58+0100\n" +"POT-Creation-Date: 2008-09-07 15:23+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/po/localefiles b/po/localefiles new file mode 100644 index 000000000..cfb47b536 --- /dev/null +++ b/po/localefiles @@ -0,0 +1,2 @@ +heim_com_err-1765328384/sv_SE.mo +heimdal_krb5/sv_SE.mo