[debian-edu-commits] [Git][debian-edu/debian-edu-doc][master] debian/mail_stats_to_list: only send mails once per month.

Holger Levsen (@holger) gitlab at salsa.debian.org
Mon Feb 7 20:59:52 GMT 2022



Holger Levsen pushed to branch master at Debian Edu / debian-edu-doc


Commits:
25eed664 by Holger Levsen at 2022-02-07T21:59:43+01:00
debian/mail_stats_to_list: only send mails once per month.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- debian/changelog
- debian/mail_stats_to_list


Changes:

=====================================
debian/changelog
=====================================
@@ -4,6 +4,9 @@ debian-edu-doc (2.12.8) UNRELEASED; urgency=medium
   * Buster manual:
     - Spanish: Eulalio Barbero Espinosa
 
+  [ Holger Levsen ]
+  * debian/mail_stats_to_list: only send mails once per month.
+
  -- Holger Levsen <holger at debian.org>  Sun, 30 Jan 2022 19:10:24 +0100
 
 debian-edu-doc (2.12.7) unstable; urgency=medium


=====================================
debian/mail_stats_to_list
=====================================
@@ -22,9 +22,8 @@
 #
 #   holger at paradis:~$ crontab -l
 #   # m h  dom mon dow   command
-#   # run on the 2nd and 4th sunday of a month
-#   23 1 8-14 * * test `/bin/date +\%w` -eq 0 && /home/holger/debian-edu-doc/debian/mail_stats_to_list
-#   23 1 22-28 * * test `/bin/date +\%w` -eq 0 && /home/holger/debian-edu-doc/debian/mail_stats_to_list all
+#   # run on the 1st sunday of a month
+#   23 1 * * 0 if [ $(date +\%d) -le 7 ] ; then /home/holger/debian-edu-doc/debian/mail_stats_to_list ; fi
 
 export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
 set -x
@@ -57,11 +56,7 @@ fi
 # loop through some manuals
 #
 cd documentation
-if [ "$1" = "all" ] ; then
-	MANUALS="debian-edu-bookworm debian-edu-bullseye"
-else
-	MANUALS="debian-edu-bookworm"
-fi
+MANUALS="debian-edu-bookworm debian-edu-bullseye"
 for i in $MANUALS ; do
 	if [ $(ls $i/$i-manual.*.po > /dev/null 2>&1 ; echo $?) -eq 0 ] ; then
 		cd $i 



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/commit/25eed6641cc473665d530edab9ac707230a474d7

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/commit/25eed6641cc473665d530edab9ac707230a474d7
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/20220207/5cea8ca8/attachment-0001.htm>


More information about the debian-edu-commits mailing list