[bootlin/training-materials updates] master: agenda: factorize some debugging variables (350afbf2)
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Jan 1 22:30:56 CET 2023
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/350afbf20a8ac68a0b79247b5449cad0cde81926
>---------------------------------------------------------------
commit 350afbf20a8ac68a0b79247b5449cad0cde81926
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: Sun Jan 1 22:30:56 2023 +0100
agenda: factorize some debugging variables
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>---------------------------------------------------------------
350afbf20a8ac68a0b79247b5449cad0cde81926
agenda/debugging-agenda.tex | 5 ++---
agenda/debugging-fr-agenda.tex | 5 ++---
agenda/debugging-online-agenda.tex | 5 ++---
agenda/debugging-online-fr-agenda.tex | 5 ++---
agenda/debugging.inc | 16 ++++++++++++++++
5 files changed, 24 insertions(+), 12 deletions(-)
diff --git a/agenda/debugging-agenda.tex b/agenda/debugging-agenda.tex
index 6edede8d..ddf5d14d 100644
--- a/agenda/debugging-agenda.tex
+++ b/agenda/debugging-agenda.tex
@@ -1,10 +1,9 @@
\documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
-\def \trainingtitle{Linux debugging, profiling, tracing and performance analysis training}
\def \trainingtype{onsite}
-\def \trainingduration{3}
\def \agendalanguage{english}
-\def \training{debugging}
+
+\input{agenda/debugging.inc}
\usepackage{agenda}
diff --git a/agenda/debugging-fr-agenda.tex b/agenda/debugging-fr-agenda.tex
index 1c0899db..79dc1848 100644
--- a/agenda/debugging-fr-agenda.tex
+++ b/agenda/debugging-fr-agenda.tex
@@ -1,10 +1,9 @@
\documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
-\def \trainingtitle{Formation debugging, profiling, tracing et analyse de performance sous Linux}
\def \trainingtype{onsite}
-\def \trainingduration{3}
\def \agendalanguage{french}
-\def \training{debugging}
+
+\input{agenda/debugging.inc}
\usepackage{agenda}
diff --git a/agenda/debugging-online-agenda.tex b/agenda/debugging-online-agenda.tex
index 0486f097..c61e9a8f 100644
--- a/agenda/debugging-online-agenda.tex
+++ b/agenda/debugging-online-agenda.tex
@@ -1,10 +1,9 @@
\documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
-\def \trainingtitle{Linux debugging, profiling, tracing and performance analysis training}
\def \trainingtype{online}
-\def \trainingduration{4}
\def \agendalanguage{english}
-\def \training{debugging}
+
+\input{agenda/debugging.inc}
\usepackage{agenda}
diff --git a/agenda/debugging-online-fr-agenda.tex b/agenda/debugging-online-fr-agenda.tex
index 609296a5..14e57c42 100644
--- a/agenda/debugging-online-fr-agenda.tex
+++ b/agenda/debugging-online-fr-agenda.tex
@@ -1,10 +1,9 @@
\documentclass[a4paper,12pt,obeyspaces,spaces,hyphens]{article}
-\def \trainingtitle{Formation debugging, profiling, tracing et analyse de performance sous Linux}
\def \trainingtype{online}
-\def \trainingduration{4}
\def \agendalanguage{french}
-\def \training{debugging}
+
+\input{agenda/debugging.inc}
\usepackage{agenda}
diff --git a/agenda/debugging.inc b/agenda/debugging.inc
new file mode 100644
index 00000000..12ac012f
--- /dev/null
+++ b/agenda/debugging.inc
@@ -0,0 +1,16 @@
+\usepackage{ifthen}
+\def \training{debugging}
+
+% Title
+\ifthenelse{\equal{\agendalanguage}{french}}{
+ \def \trainingtitle{Formation debugging, profiling, tracing et analyse de performance sous Linux}
+}{
+ \def \trainingtitle{Linux debugging, profiling, tracing and performance analysis training}
+}
+
+% Duration
+\ifthenelse{\equal{\trainingtype}{online}}{
+ \def \trainingduration{4}
+}{
+ \def \trainingduration{3}
+}
More information about the training-materials-updates
mailing list