[debian-edu-commits] [Git][debian-edu/debian-edu-doc][master] Prevent legacy manuals from being updated accidently from wiki.debian.org

Wolfgang Schweer gitlab at salsa.debian.org
Mon Mar 1 11:10:20 GMT 2021



Wolfgang Schweer pushed to branch master at Debian Edu / debian-edu-doc


Commits:
85c716c8 by Wolfgang Schweer at 2021-03-01T12:09:31+01:00
Prevent legacy manuals from being updated accidently from wiki.debian.org

  Adjust documentation/common/Makefile.common and documentation/*/Makefile

Signed-off-by: Wolfgang Schweer <wschweer at arcor.de>

- - - - -


7 changed files:

- debian/changelog
- documentation/audacity/Makefile
- documentation/common/Makefile.common
- documentation/debian-edu-bullseye/Makefile
- documentation/debian-edu-buster/Makefile
- documentation/debian-edu-itil/Makefile
- documentation/rosegarden/Makefile


Changes:

=====================================
debian/changelog
=====================================
@@ -11,6 +11,10 @@ debian-edu-doc (2.11.20) UNRELEASED; urgency=medium
   * Buster manual:
     - German: Wolfgang Schweer
 
+  [ Wolfgang Schweer ]
+  * Prevent legacy manuals from being updated accidently from wiki.debian.org:
+    - Adjust documentation/common/Makefile.common and documentation/*/Makefile.
+
  -- Holger Levsen <holger at debian.org>  Sun, 28 Feb 2021 23:23:56 +0100
 
 debian-edu-doc (2.11.19) unstable; urgency=medium


=====================================
documentation/audacity/Makefile
=====================================
@@ -3,6 +3,7 @@
 #
 url=https://wiki.debian.org/DebianEdu/Documentation/Manuals/Audacity/
 name=audacity-manual
+legacy=yes
 DEBIAN_EDU_DOC_TITLE=Debian\ Edu\ /\ Skolelinux\ Audacity\ manual
 path1=DebianEdu/Documentation/Manuals/Audacity
 path2='\/DebianEdu\/Documentation\/Manuals\/'


=====================================
documentation/common/Makefile.common
=====================================
@@ -37,10 +37,14 @@ directory = $(subst -manual,,$(name))
 all: build
 
 update:
-	../scripts/get_manual_version
-	../scripts/get_manual
-	po4a --no-translations --msgmerge-opt --no-location po4a.cfg
-	msgcat --no-location -o $(name).pot $(name).pot
+	if [ "$(legacy)" = "yes" ] ; then \
+		echo "Not updating, $(name) is a legacy manual." ; \
+	else \
+		../scripts/get_manual_version ; \
+		../scripts/get_manual ; \
+		po4a --no-translations --msgmerge-opt --no-location po4a.cfg ; \
+		msgcat --no-location -o $(name).pot $(name).pot ; \
+	fi
 
 update-copyright:
 	../scripts/get_copyright $(path1) $(name)


=====================================
documentation/debian-edu-bullseye/Makefile
=====================================
@@ -3,6 +3,7 @@
 #
 url=https://wiki.debian.org/DebianEdu/Documentation/Bullseye/
 name=debian-edu-bullseye-manual
+legacy=no
 VERSION:=$(shell cat version)
 DEBIAN_EDU_DOC_TITLE=Debian\ Edu\ /\ Skolelinux\ Bullseye\ $(VERSION)\ Manual
 path1=DebianEdu/Documentation/Bullseye


=====================================
documentation/debian-edu-buster/Makefile
=====================================
@@ -3,6 +3,7 @@
 #
 url=https://wiki.debian.org/DebianEdu/Documentation/Buster/
 name=debian-edu-buster-manual
+legacy=no
 VERSION:=$(shell cat version)
 DEBIAN_EDU_DOC_TITLE=Debian\ Edu\ /\ Skolelinux\ Buster\ $(VERSION)\ Manual
 path1=DebianEdu/Documentation/Buster


=====================================
documentation/debian-edu-itil/Makefile
=====================================
@@ -3,6 +3,7 @@
 #
 url=https://wiki.debian.org/DebianEdu/Documentation/ITIL/
 name=debian-edu-itil-manual
+legacy=yes
 DEBIAN_EDU_DOC_TITLE=Debian\ Edu\ /\ Skolelinux\ ITIL\ Manual
 path1=DebianEdu/Documentation/ITIL
 path2='\/DebianEdu\/Documentation\/'


=====================================
documentation/rosegarden/Makefile
=====================================
@@ -3,6 +3,7 @@
 #
 url=https://wiki.debian.org/DebianEdu/Documentation/Manuals/Rosegarden/
 name=rosegarden-manual
+legacy=yes
 DEBIAN_EDU_DOC_TITLE=Debian\ Edu\ /\ Skolelinux\ Rosegarden\ manual
 path1=DebianEdu/Documentation/Manuals/Rosegarden
 path2='\/DebianEdu\/Documentation\/Manuals\/'



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/commit/85c716c87737d21b540131bd5deb417fbce6bc79

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/commit/85c716c87737d21b540131bd5deb417fbce6bc79
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20210301/5328ca51/attachment-0001.htm>


More information about the debian-edu-commits mailing list