make work
authorLove Hörnquist Åstrand <lha@kth.se>
Sun, 7 Sep 2008 21:14:18 +0000 (21:14 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Sun, 7 Sep 2008 21:14:18 +0000 (21:14 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23753 ec53bebd-3082-4978-b11e-865c3cabbd6b

14 files changed:
po/Makefile.am
po/gen-po.in
po/heim_com_err-1750206208/heim_com_err-1750206208.pot
po/heim_com_err-1765328384/heim_com_err-1765328384.pot
po/heim_com_err-1980176640/heim_com_err-1980176640.pot
po/heim_com_err-969269760/heim_com_err-969269760.pot
po/heim_com_err1859794432/heim_com_err1859794432.pot
po/heim_com_err35224064/heim_com_err35224064.pot
po/heim_com_err36150272/heim_com_err36150272.pot
po/heim_com_err39525376/heim_com_err39525376.pot
po/heim_com_err43787520/heim_com_err43787520.pot
po/heim_com_err569856/heim_com_err569856.pot
po/heimdal_krb5/heimdal_krb5.pot
po/localefiles [new file with mode: 0644]

index 1a727aaa169967e93a14c57dce6febe4eec9659f..955f446de765e849a49a2ae7616766399ce78264 100644 (file)
@@ -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
index a10453c4780f9070cd22d25e638c3ffe6661c8c1..402a83dee02d9ed78bdda799f730dba9f46bdf3b 100644 (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
 
index a7aa204723f41594e28647dea33a1e5d7246ed00..b3be7a3ec859d7827ee0244522fdf633f3496218 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index da2f8803687dec1283432214e4acc0376f4a3dca..ae1aabaddd06dab68efe868277e1c7f58812f631 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 9aa5caa7b22f36f161c3f735def1587027c04f01..4029d09d3d6134dd7413e73716f2fdf04cac24ca 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index de07c4a75778aa3ae78c8e00c8993d3e199b69f3..d16f7b6e2eef52acea77acc5ea5873261ddb0f32 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 182803fce6f08827ba97300ab1eaaaf17e46dbaf..6b51842454045edbb52cb39517679f0b2d8f2068 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 98bd769a004503b1705f63cc666877383d818ed4..0475aa856955107db1416c06d50ff533c2d05379 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 3dee010f95871a4724fed9eaac964f4d69d7837d..0bedfb92b7cac9afacb6108fed3199397b4a70bd 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 03ee38a6ecf2650dfb2231c56d9b29e16e62b472..2abb66150eefd76a226740c406649abd0e94dcf9 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index e82080301656762643a791827e8a7c0c467f1f14..1b5ba5609eeb6eb84880f963d4028ce851f5b422 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 77e1d90bd0d4b581fa7d277e1944088d9458e80b..2913f6bcb9c8c0071d93c0a0cfdc7eb39aeab8d2 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index bced1b6efd0a49f217f81a573d46ffd3af272fe4..2d332edefc14de6540ff5f89bdc2231545d21117 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/po/localefiles b/po/localefiles
new file mode 100644 (file)
index 0000000..cfb47b5
--- /dev/null
@@ -0,0 +1,2 @@
+heim_com_err-1765328384/sv_SE.mo
+heimdal_krb5/sv_SE.mo