summaryrefslogtreecommitdiff
path: root/programmes.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-10 23:28:39 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-10 23:28:39 +0100
commitd148eeb4a46cb647d13d451cb01cdc66835d2b03 (patch)
tree7d25301eee1714e71570225abee033a5ec81cc0d /programmes.sh
parent9f74233ffedb0609d43d54b6169dc47dd6337803 (diff)
downloadquatuorbellefeuille.com-d148eeb4a46cb647d13d451cb01cdc66835d2b03.tar.xz
Add links from/to English pages
Diffstat (limited to 'programmes.sh')
-rw-r--r--programmes.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/programmes.sh b/programmes.sh
index f03a636..d8a410a 100644
--- a/programmes.sh
+++ b/programmes.sh
@@ -1,8 +1,10 @@
add-programs ()
{
- sed -i \
- -e /'{PROGRAMS}'/'r '<(./build-programs.py) \
- -e /'{PROGRAMS}'/'c\' \
+ local programs_src=$(dirname "${input}")/programs.in
+
+ sed -i \
+ -e /'{PROGRAMS}'/'r '<(./build-programs.py "${programs_src}") \
+ -e /'{PROGRAMS}'/'c\' \
$1
}
@@ -10,3 +12,4 @@ title=Programmes
stylesheets=programmes
transforms=("$(transform-li-current-a programmes)")
postprocess=add-programs
+translation=programs