[bootlin/training-materials updates] master: agenda: factorize some Yocto variables (6c53a5f4)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Jan 1 21:48:16 CET 2023


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/6c53a5f4a725ccd102ce1bd2e5c50876626f02c6

>---------------------------------------------------------------

commit 6c53a5f4a725ccd102ce1bd2e5c50876626f02c6
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Sun Jan 1 21:48:16 2023 +0100

    agenda: factorize some Yocto variables
    
    For now, just factorize
    
     \training
     \trainingtitle
     \trainingduration
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


>---------------------------------------------------------------

6c53a5f4a725ccd102ce1bd2e5c50876626f02c6
 agenda/yocto-agenda.tex           |  5 ++---
 agenda/yocto-fr-agenda.tex        |  5 ++---
 agenda/yocto-online-agenda.tex    |  5 ++---
 agenda/yocto-online-fr-agenda.tex |  5 ++---
 agenda/yocto.inc                  | 16 ++++++++++++++++
 5 files changed, 24 insertions(+), 12 deletions(-)

diff --git a/agenda/yocto-agenda.tex b/agenda/yocto-agenda.tex
index f76f4c7a..a62e8861 100644
--- a/agenda/yocto-agenda.tex
+++ b/agenda/yocto-agenda.tex
@@ -1,10 +1,9 @@
 \documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
 
-\def \trainingtitle{Yocto Project and OpenEmbedded development training}
 \def \trainingtype{online}
-\def \trainingduration{3}
 \def \agendalanguage{english}
-\def \training{yocto}
+
+\input{agenda/yocto.inc}
 
 \usepackage{agenda}
 
diff --git a/agenda/yocto-fr-agenda.tex b/agenda/yocto-fr-agenda.tex
index fce36969..d1b2ab55 100644
--- a/agenda/yocto-fr-agenda.tex
+++ b/agenda/yocto-fr-agenda.tex
@@ -1,10 +1,9 @@
 \documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
 
-\def \trainingtitle{Formation développement Linux embarqué avec Yocto Project et OpenEmbedded}
 \def \trainingtype{online}
-\def \trainingduration{3}
 \def \agendalanguage{french}
-\def \training{yocto}
+
+\input{agenda/yocto.inc}
 
 \usepackage{agenda}
 
diff --git a/agenda/yocto-online-agenda.tex b/agenda/yocto-online-agenda.tex
index ae42f9b2..2fe99b14 100644
--- a/agenda/yocto-online-agenda.tex
+++ b/agenda/yocto-online-agenda.tex
@@ -1,10 +1,9 @@
 \documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
 
-\def \trainingtitle{Yocto Project and OpenEmbedded development training}
 \def \trainingtype{online}
-\def \trainingduration{4}
 \def \agendalanguage{english}
-\def \training{yocto}
+
+\input{agenda/yocto.inc}
 
 \usepackage{agenda}
 
diff --git a/agenda/yocto-online-fr-agenda.tex b/agenda/yocto-online-fr-agenda.tex
index f5bbbfd1..43e7cbaa 100644
--- a/agenda/yocto-online-fr-agenda.tex
+++ b/agenda/yocto-online-fr-agenda.tex
@@ -1,10 +1,9 @@
 \documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
 
-\def \trainingtitle{Formation développement Linux embarqué avec Yocto Project et OpenEmbedded}
 \def \trainingtype{online}
-\def \trainingduration{4}
 \def \agendalanguage{french}
-\def \training{yocto}
+
+\input{agenda/yocto.inc}
 
 \usepackage{agenda}
 
diff --git a/agenda/yocto.inc b/agenda/yocto.inc
new file mode 100644
index 00000000..f03fcacf
--- /dev/null
+++ b/agenda/yocto.inc
@@ -0,0 +1,16 @@
+\usepackage{ifthen}
+\def \training{yocto}
+
+% Title
+\ifthenelse{\equal{\agendalanguage}{french}}{
+  \def \trainingtitle{Formation développement Linux embarqué avec Yocto Project et OpenEmbedded}
+}{
+  \def \trainingtitle{Yocto Project and OpenEmbedded development training}
+}
+
+% Duration
+\ifthenelse{\equal{\trainingtype}{online}}{
+  \def \trainingduration{4}
+}{
+  \def \trainingduration{3}
+}




More information about the training-materials-updates mailing list