all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#31310] [PATCH] Fix make dist
@ 2018-04-29 14:24 Julien Lepiller
  2018-04-29 21:20 ` bug#31310: " Julien Lepiller
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Lepiller @ 2018-04-29 14:24 UTC (permalink / raw)
  To: 31310

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

Hi,

these patches add the documentation pot files to the distribution and
exclude them from being checked for store references. That's because
they contain example store paths. The second one renames them so they
have a more meaningful name for the TP.

[-- Attachment #2: 0001-nls-Distribute-doc-pot-files.patch --]
[-- Type: text/x-patch, Size: 1258 bytes --]

From d36b9eeb7ee8811e51f82c41ae17ebca863acad5 Mon Sep 17 00:00:00 2001
From: Julien Lepiller <julien@lepiller.eu>
Date: Sun, 29 Apr 2018 14:00:13 +0200
Subject: [PATCH 1/2] nls: Distribute doc pot files.

* po/doc/local.mk (EXTRA_DIST): Add guix.pot and contributing.pot.
* Makefile.am (assert-no-store-file-names): exclude them and
documentation po files.
---
 Makefile.am     | 1 +
 po/doc/local.mk | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 9f134c970..b9950a24b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -741,6 +741,7 @@ assert-no-store-file-names: $(distdir)/ChangeLog
 	     --exclude=*.info-[0-9] --exclude=*.dot				\
 	     --exclude=*.eps --exclude-dir=bootstrap				\
 	     --exclude=guix-prettify.el						\
+	     --exclude=guix.pot --exclude=guix.*.po						\
 	     --exclude=ChangeLog						\
 	     -E "$(storedir)/[a-z0-9]{32}-" $(distdir) ;			\
 	then									\
diff --git a/po/doc/local.mk b/po/doc/local.mk
index 4e1c28307..d104bfcbe 100644
--- a/po/doc/local.mk
+++ b/po/doc/local.mk
@@ -17,6 +17,8 @@
 # along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
 EXTRA_DIST = \
+  %D%/contributing.pot \
+  %D%/guix.pot \
   %D%/contributing.fr.po \
   %D%/guix.fr.po
 
-- 
2.17.0


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-nls-Rename-documentation-pot-files-for-the-translati.patch --]
[-- Type: text/x-patch, Size: 3974 bytes --]

From 4a786d03f5810e06fafaa9ce01116dd079f7dfbd Mon Sep 17 00:00:00 2001
From: Julien Lepiller <julien@lepiller.eu>
Date: Sun, 29 Apr 2018 14:10:23 +0200
Subject: [PATCH 2/2] nls: Rename documentation pot files for the translation
 project.

* po/doc/guix.pot: Rename to...
* po/doc/guix-doc.pot: ...this.
* po/doc/contributing.pot: Rename to...
* po/doc/guix-contributing-doc.pot: ...this.
* po/doc/local.mk: Rename them.
* Makefile.am: Rename them.
---
 Makefile.am                                      |  2 +-
 ...ontributing.pot => guix-contributing-doc.pot} |  0
 po/doc/{guix.pot => guix-doc.pot}                |  0
 po/doc/local.mk                                  | 16 ++++++++--------
 4 files changed, 9 insertions(+), 9 deletions(-)
 rename po/doc/{contributing.pot => guix-contributing-doc.pot} (100%)
 rename po/doc/{guix.pot => guix-doc.pot} (100%)

diff --git a/Makefile.am b/Makefile.am
index b9950a24b..251bd320d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -741,7 +741,7 @@ assert-no-store-file-names: $(distdir)/ChangeLog
 	     --exclude=*.info-[0-9] --exclude=*.dot				\
 	     --exclude=*.eps --exclude-dir=bootstrap				\
 	     --exclude=guix-prettify.el						\
-	     --exclude=guix.pot --exclude=guix.*.po						\
+	     --exclude=guix-doc.pot --exclude=guix.*.po				\
 	     --exclude=ChangeLog						\
 	     -E "$(storedir)/[a-z0-9]{32}-" $(distdir) ;			\
 	then									\
diff --git a/po/doc/contributing.pot b/po/doc/guix-contributing-doc.pot
similarity index 100%
rename from po/doc/contributing.pot
rename to po/doc/guix-contributing-doc.pot
diff --git a/po/doc/guix.pot b/po/doc/guix-doc.pot
similarity index 100%
rename from po/doc/guix.pot
rename to po/doc/guix-doc.pot
diff --git a/po/doc/local.mk b/po/doc/local.mk
index d104bfcbe..f0c158e08 100644
--- a/po/doc/local.mk
+++ b/po/doc/local.mk
@@ -17,8 +17,8 @@
 # along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
 EXTRA_DIST = \
-  %D%/contributing.pot \
-  %D%/guix.pot \
+  %D%/guix-contributing-doc.pot \
+  %D%/guix-doc.pot \
   %D%/contributing.fr.po \
   %D%/guix.fr.po
 
@@ -26,7 +26,7 @@ POT_OPTIONS = --package-name "guix" --package-version "$(VERSION)" \
 	          --copyright-holder "Ludovic Courtès" \
 			  --msgid-bugs-address "ludo@gnu.org"
 
-$(srcdir)/po/doc/guix.%.po: $(srcdir)/po/doc/guix.pot
+$(srcdir)/po/doc/guix.%.po: $(srcdir)/po/doc/guix-doc.pot
 	@lang=`echo $$(basename "$@") | sed -e 's|^guix.||' -e 's|.po$$||'` ;\
 	if test -f "$@"; then \
 	  test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
@@ -45,7 +45,7 @@ $(srcdir)/po/doc/guix.%.po: $(srcdir)/po/doc/guix.pot
 	     exit 1; \
 	fi
 
-$(srcdir)/po/doc/contributing.%.po: $(srcdir)/po/doc/contributing.pot
+$(srcdir)/po/doc/contributing.%.po: $(srcdir)/po/doc/guix-contributing-doc.pot
 	@lang=`echo $$(basename "$@") | sed -e 's|^contributing.||' -e 's|.po$$||'` ;\
 	if test -f "$@"; then \
 	  test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
@@ -64,16 +64,16 @@ $(srcdir)/po/doc/contributing.%.po: $(srcdir)/po/doc/contributing.pot
 	     exit 1; \
 	fi
 
-$(srcdir)/po/doc/contributing.pot-update: doc/contributing.texi
+$(srcdir)/po/doc/guix-contributing-doc.pot-update: doc/contributing.texi
 	$(AM_V_PO4A)$(PO4A_UPDATEPO) -M UTF-8 -f texinfo -m "$<" \
 		-p "$$(echo $@ | sed 's|-update||')" $(POT_OPTIONS)
 	@touch "$$(echo $@ | sed 's|-update||')"
 
-$(srcdir)/po/doc/guix.pot-update: doc/guix.texi
+$(srcdir)/po/doc/guix-doc.pot-update: doc/guix.texi
 	$(AM_V_PO4A)$(PO4A_UPDATEPO) -M UTF-8 -f texinfo -m "$<" \
 		-p "$$(echo $@ | sed 's|-update||')" $(POT_OPTIONS)
 	@touch "$$(echo $@ | sed 's|-update||')"
 
 doc-pot-update:
-	$(MAKE) $(srcdir)/po/doc/guix.pot-update
-	$(MAKE) $(srcdir)/po/doc/contributing.pot-update
+	$(MAKE) $(srcdir)/po/doc/guix-doc.pot-update
+	$(MAKE) $(srcdir)/po/doc/guix-contributing-doc.pot-update
-- 
2.17.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#31310: [PATCH] Fix make dist
  2018-04-29 14:24 [bug#31310] [PATCH] Fix make dist Julien Lepiller
@ 2018-04-29 21:20 ` Julien Lepiller
  2018-04-30 21:02   ` [bug#31310] " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Lepiller @ 2018-04-29 21:20 UTC (permalink / raw)
  To: 31310-done

Le Sun, 29 Apr 2018 16:24:52 +0200,
Julien Lepiller <julien@lepiller.eu> a écrit :

> Hi,
> 
> these patches add the documentation pot files to the distribution and
> exclude them from being checked for store references. That's because
> they contain example store paths. The second one renames them so they
> have a more meaningful name for the TP.

I pushed a different version of that patch that creates only one pot
file for guix-manual, and adds it to the distribution as
39764ef893b7b65a8ce55e13746fed8fd0bad6e0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#31310] [PATCH] Fix make dist
  2018-04-29 21:20 ` bug#31310: " Julien Lepiller
@ 2018-04-30 21:02   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2018-04-30 21:02 UTC (permalink / raw)
  To: 31310

Julien Lepiller <julien@lepiller.eu> skribis:

> Le Sun, 29 Apr 2018 16:24:52 +0200,
> Julien Lepiller <julien@lepiller.eu> a écrit :
>
>> Hi,
>> 
>> these patches add the documentation pot files to the distribution and
>> exclude them from being checked for store references. That's because
>> they contain example store paths. The second one renames them so they
>> have a more meaningful name for the TP.
>
> I pushed a different version of that patch that creates only one pot
> file for guix-manual, and adds it to the distribution as
> 39764ef893b7b65a8ce55e13746fed8fd0bad6e0

Perfect, thanks a lot!

Ludo'.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-30 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-29 14:24 [bug#31310] [PATCH] Fix make dist Julien Lepiller
2018-04-29 21:20 ` bug#31310: " Julien Lepiller
2018-04-30 21:02   ` [bug#31310] " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.