>From ac14ab493f6b8a9861be71183833a1b4fe7dbcb1 Mon Sep 17 00:00:00 2001 From: Julien Lepiller
Date: Mon, 2 Sep 2019 19:45:05 +0200 Subject: [PATCH] doc: Rename translated manuals to drop the dot. Some info readers and the html generator assume the name of the manual is only what's before the first dot, which leads to errors, such as wrong inter-lingua links and opening a translated manual with "info guix". --- .gitignore | 32 ++++++++++++++++---------------- bootstrap | 6 +++--- doc/build.scm | 4 ++-- doc/local.mk | 22 +++++++++++----------- guix/self.scm | 4 ++-- 5 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.gitignore b/.gitignore index 93d2ec9801..44a0febd60 100644 --- a/.gitignore +++ b/.gitignore @@ -29,22 +29,22 @@ /doc/*.1 /doc/.dirstamp /doc/contributing.*.texi -/doc/guix.*.aux -/doc/guix.*.cp -/doc/guix.*.cps -/doc/guix.*.fn -/doc/guix.*.fns -/doc/guix.*.html -/doc/guix.*.info -/doc/guix.*.info-[0-9] -/doc/guix.*.ky -/doc/guix.*.pg -/doc/guix.*.toc -/doc/guix.*.t2p -/doc/guix.*.tp -/doc/guix.*.vr -/doc/guix.*.vrs -/doc/guix.*.texi +/doc/guix-*.aux +/doc/guix-*.cp +/doc/guix-*.cps +/doc/guix-*.fn +/doc/guix-*.fns +/doc/guix-*.html +/doc/guix-*.info +/doc/guix-*.info-[0-9] +/doc/guix-*.ky +/doc/guix-*.pg +/doc/guix-*.toc +/doc/guix-*.t2p +/doc/guix-*.tp +/doc/guix-*.vr +/doc/guix-*.vrs +/doc/guix-*.texi /doc/guix.aux /doc/guix.cp /doc/guix.cps diff --git a/bootstrap b/bootstrap index c0b5af7677..6471c96bcc 100755 --- a/bootstrap +++ b/bootstrap @@ -8,9 +8,9 @@ langs=`find po/doc -type f -name '*.po' \ | sed -e 's,guix-manual\.,,' \ | xargs -n 1 -I{} basename {} .po` for lang in ${langs}; do - if [ ! -e "doc/guix.${lang}.texi" ]; then - echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi" - echo "@include version-${lang}.texi" >> "doc/guix.${lang}.texi" + if [ ! -e "doc/guix-${lang}.texi" ]; then + echo "@setfilename guix-${lang}.info" > "doc/guix-${lang}.texi" + echo "@include version-${lang}.texi" >> "doc/guix-${lang}.texi" # Ensure .po file is newer. touch "po/doc/guix-manual.${lang}.po" fi diff --git a/doc/build.scm b/doc/build.scm index 7ba9f57bc9..af284805eb 100644 --- a/doc/build.scm +++ b/doc/build.scm @@ -210,7 +210,7 @@ makeinfo OPTIONS." (string-append #$manual-source "/" #$manual ".texi") (string-append #$manual-source "/" - #$manual "." language ".texi"))))) + #$manual "-" language ".texi"))))) (format #t "building HTML manual for language '~a'...~%" language) (mkdir-p (string-append #$output "/" @@ -313,7 +313,7 @@ makeinfo OPTIONS." (string-append #$manual-source "/" #$manual ".texi") (string-append #$manual-source "/" - #$manual "." language ".texi"))))) + #$manual "-" language ".texi"))))) (format #t "building PDF manual for language '~a'...~%" language) (mkdir-p (string-append #$output "/" diff --git a/doc/local.mk b/doc/local.mk index 336e961c4f..e4db71e8c7 100644 --- a/doc/local.mk +++ b/doc/local.mk @@ -22,11 +22,11 @@ # along with GNU Guix. If not, see