From 76b712d09017e9141f32e133b3ac61c2663901f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20Argos=29?= Date: Sat, 14 Jan 2023 16:19:59 +0100 Subject: [PATCH] Fix calls to sed. Also removed some of them (that were not necessary). --- Makefile | 19 ++++++------------- pages/index.org | 3 +-- pages/posts/index.org | 3 +-- pages/research/index.org | 3 +-- pages/teaching/economic-calculus/index.org | 3 +-- pages/teaching/growth/index.org | 3 +-- pages/teaching/index.org | 3 +-- pages/teaching/time-series/index.org | 3 +-- 8 files changed, 13 insertions(+), 27 deletions(-) diff --git a/Makefile b/Makefile index 1e7bf65..96d1f30 100644 --- a/Makefile +++ b/Makefile @@ -18,19 +18,12 @@ endif publish: @EMACS --batch --no-init --load publish.el --funcall org-publish-all - sed -i '/‎<\/title>/d' ./output/index.html - sed -i '/<title>‎<\/title>/d' ./output/research/index.html - sed -i '/<title>‎<\/title>/d' ./output/posts/index.html - sed -i '/<title>‎<\/title>/d' ./output/teaching/index.html - sed -i '/<title>‎<\/title>/d' ./output/teaching/economic-calculus/index.html - sed -i '/<title>‎<\/title>/d' ./output/teaching/growth/index.html - sed -i '/<title>‎<\/title>/d' ./output/teaching/time-series/index.html - sed -i 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/simulation-du-modele-de-solow/index.html - sed -i 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/simulation-du-modele-de-solow/index.html - sed -i 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/modele-de-solow/index.html - sed -i 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/modele-de-solow/index.html - sed -i 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/representer-graphiquement-une-serie-temporelle-du-pib/index.html - sed -i 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/representer-graphiquement-une-serie-temporelle-du-pib/index.html + sed -i '' -e 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/simulation-du-modele-de-solow/index.html + sed -i '' -e 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/simulation-du-modele-de-solow/index.html + sed -i '' -e 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/modele-de-solow/index.html + sed -i '' -e 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/modele-de-solow/index.html + sed -i '' -e 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/representer-graphiquement-une-serie-temporelle-du-pib/index.html + sed -i '' -e 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/representer-graphiquement-une-serie-temporelle-du-pib/index.html assets: @rsync --recursive -avz assets/fonts output diff --git a/pages/index.org b/pages/index.org index a6d8a80..1777a54 100644 --- a/pages/index.org +++ b/pages/index.org @@ -1,9 +1,8 @@ -#+TITLE: +#+TITLE: Stéphane Adjemian #+AUTHOR: Stéphane Adjemian #+EMAIL: stephane.adjemian@univ-lemans.fr #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:t @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:nil skip:t d:t tags:not-in-toc creator:t timestamp:t author:t -#+HTML_HEAD: <title>Stéphane Adjemian #+HTML_HEAD: #+HTML_HEAD: #+HTML_HEAD: diff --git a/pages/posts/index.org b/pages/posts/index.org index c8bdc84..1506f80 100644 --- a/pages/posts/index.org +++ b/pages/posts/index.org @@ -1,9 +1,8 @@ -#+TITLE: +#+TITLE: Stéphane Adjemian #+AUTHOR: Stéphane Adjemian #+EMAIL: stepan@adjemian.eu #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:nil -:t f:t *:t TeX:t LaTeX:nil skip:t d:t tags:not-in-toc creator:t timestamp:t author:t -#+HTML_HEAD: Stéphane Adjemian #+HTML_HEAD: #+BEGIN_EXPORT html diff --git a/pages/research/index.org b/pages/research/index.org index ff23d8e..1d903c2 100644 --- a/pages/research/index.org +++ b/pages/research/index.org @@ -1,9 +1,8 @@ -#+TITLE: +#+TITLE: Stéphane Adjemian #+AUTHOR: Stéphane Adjemian #+EMAIL: stepan@adjemian.eu #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:nil -:t f:t *:t TeX:t LaTeX:nil skip:t d:t tags:not-in-toc creator:t timestamp:t author:t -#+HTML_HEAD: Stéphane Adjemian #+HTML_HEAD: #+HTML_HEAD: diff --git a/pages/teaching/economic-calculus/index.org b/pages/teaching/economic-calculus/index.org index 7cb96f2..ff88548 100644 --- a/pages/teaching/economic-calculus/index.org +++ b/pages/teaching/economic-calculus/index.org @@ -1,9 +1,8 @@ -#+TITLE: +#+TITLE: Stéphane Adjemian #+AUTHOR: Stéphane Adjemian #+EMAIL: stepan@adjemian.eu #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:nil -:t f:t *:t TeX:t LaTeX:nil skip:t d:t tags:not-in-toc creator:t timestamp:t author:t -#+HTML_HEAD: Stéphane Adjemian #+HTML_HEAD: #+HTML_HEAD: diff --git a/pages/teaching/growth/index.org b/pages/teaching/growth/index.org index e0a1544..48a12ab 100644 --- a/pages/teaching/growth/index.org +++ b/pages/teaching/growth/index.org @@ -1,9 +1,8 @@ -#+TITLE: +#+TITLE: Stéphane Adjemian #+AUTHOR: Stéphane Adjemian #+EMAIL: stepan@adjemian.eu #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:nil -:t f:t *:t TeX:t LaTeX:nil skip:t d:t tags:not-in-toc creator:t timestamp:t author:t -#+HTML_HEAD: Stéphane Adjemian #+HTML_HEAD: #+HTML_HEAD: diff --git a/pages/teaching/index.org b/pages/teaching/index.org index a731f81..925c059 100644 --- a/pages/teaching/index.org +++ b/pages/teaching/index.org @@ -1,9 +1,8 @@ -#+TITLE: +#+TITLE: Stéphane Adjemian #+AUTHOR: Stéphane Adjemian #+EMAIL: stepan@adjemian.eu #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:nil -:t f:t *:t TeX:t LaTeX:nil skip:t d:t tags:not-in-toc creator:t timestamp:t author:t -#+HTML_HEAD: Stéphane Adjemian #+HTML_HEAD: #+HTML_HEAD: diff --git a/pages/teaching/time-series/index.org b/pages/teaching/time-series/index.org index be94101..c823b80 100644 --- a/pages/teaching/time-series/index.org +++ b/pages/teaching/time-series/index.org @@ -1,9 +1,8 @@ -#+TITLE: +#+TITLE: Stéphane Adjemian #+AUTHOR: Stéphane Adjemian #+EMAIL: stepan@adjemian.eu #+LANGUAGE: en #+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:nil -:t f:t *:t TeX:t LaTeX:nil skip:t d:t tags:not-in-toc creator:t timestamp:t author:t -#+HTML_HEAD: Stéphane Adjemian #+HTML_HEAD: #+HTML_HEAD: