[bootlin/training-materials updates] master: agenda: factorize some boot time variables (f0a6f76c)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Jan 1 22:25:32 CET 2023
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/f0a6f76c241d327810493ae08b4ddc068c588a27
>---------------------------------------------------------------
commit f0a6f76c241d327810493ae08b4ddc068c588a27
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: Sun Jan 1 22:25:32 2023 +0100
agenda: factorize some boot time variables
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>---------------------------------------------------------------
f0a6f76c241d327810493ae08b4ddc068c588a27
agenda/boot-time-agenda.tex | 5 ++---
agenda/boot-time-fr-agenda.tex | 5 ++---
agenda/boot-time-online-agenda.tex | 5 ++---
agenda/boot-time-online-fr-agenda.tex | 5 ++---
agenda/boot-time.inc | 16 ++++++++++++++++
5 files changed, 24 insertions(+), 12 deletions(-)
diff --git a/agenda/boot-time-agenda.tex b/agenda/boot-time-agenda.tex
index 75178104..60bdee39 100644
--- a/agenda/boot-time-agenda.tex
+++ b/agenda/boot-time-agenda.tex
@@ -1,10 +1,9 @@
\documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
-\def \trainingtitle{Embedded Linux boot time optimization training}
\def \trainingtype{onsite}
-\def \trainingduration{3}
\def \agendalanguage{english}
-\def \training{boot-time}
+
+\input{agenda/boot-time.inc}
\usepackage{agenda}
diff --git a/agenda/boot-time-fr-agenda.tex b/agenda/boot-time-fr-agenda.tex
index f1f616b5..cc68a5b5 100644
--- a/agenda/boot-time-fr-agenda.tex
+++ b/agenda/boot-time-fr-agenda.tex
@@ -1,10 +1,9 @@
\documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
-\def \trainingtitle{Formation optimisation du temps de démarrage de Linux embarqué}
\def \trainingtype{onsite}
-\def \trainingduration{3}
\def \agendalanguage{french}
-\def \training{boot-time}
+
+\input{agenda/boot-time.inc}
\usepackage{agenda}
diff --git a/agenda/boot-time-online-agenda.tex b/agenda/boot-time-online-agenda.tex
index 8707fe73..7ce07d0a 100644
--- a/agenda/boot-time-online-agenda.tex
+++ b/agenda/boot-time-online-agenda.tex
@@ -1,10 +1,9 @@
\documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
-\def \trainingtitle{Embedded Linux boot time optimization training}
\def \trainingtype{online}
-\def \trainingduration{4}
\def \agendalanguage{english}
-\def \training{boot-time}
+
+\input{agenda/boot-time.inc}
\usepackage{agenda}
diff --git a/agenda/boot-time-online-fr-agenda.tex b/agenda/boot-time-online-fr-agenda.tex
index 30e19870..69e24f99 100644
--- a/agenda/boot-time-online-fr-agenda.tex
+++ b/agenda/boot-time-online-fr-agenda.tex
@@ -1,10 +1,9 @@
\documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
-\def \trainingtitle{Formation optimisation du temps de démarrage de Linux embarqué}
\def \trainingtype{online}
-\def \trainingduration{4}
\def \agendalanguage{french}
-\def \training{boot-time}
+
+\input{agenda/boot-time.inc}
\usepackage{agenda}
diff --git a/agenda/boot-time.inc b/agenda/boot-time.inc
new file mode 100644
index 00000000..75e508e2
--- /dev/null
+++ b/agenda/boot-time.inc
@@ -0,0 +1,16 @@
+\usepackage{ifthen}
+\def \training{boot-time}
+
+% Title
+\ifthenelse{\equal{\agendalanguage}{french}}{
+ \def \trainingtitle{Formation optimisation du temps de démarrage de Linux embarqué}
+}{
+ \def \trainingtitle{Embedded Linux boot time optimization training}
+}
+
+% Duration
+\ifthenelse{\equal{\trainingtype}{online}}{
+ \def \trainingduration{4}
+}{
+ \def \trainingduration{3}
+}
More information about the training-materials-updates
mailing list