diff options
author | EuAndreh <eu@euandre.org> | 2023-04-15 16:21:40 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-15 16:21:40 -0300 |
commit | bcd1d0be109aae75ed7d34545f893208a671e316 (patch) | |
tree | 1f7aa11a29131430a649b8b10c249c1abda0710e /v2/src/bin/makemake | |
parent | v2: Generate sitemap.xml (diff) | |
download | euandre.org-bcd1d0be109aae75ed7d34545f893208a671e316.tar.gz euandre.org-bcd1d0be109aae75ed7d34545f893208a671e316.tar.xz |
v2: WIP support for slides
Diffstat (limited to 'v2/src/bin/makemake')
-rwxr-xr-x | v2/src/bin/makemake | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/v2/src/bin/makemake b/v2/src/bin/makemake index c6e3407..3956844 100755 --- a/v2/src/bin/makemake +++ b/v2/src/bin/makemake @@ -144,6 +144,17 @@ for lang in $(langs); do printf '\n\n' done + coll_path="$(coll2path "$lang" slide)" + git ls-files "$CONTENT_PREFIX/$lang/$coll_path"*.slides | + varlist "slide.$lang.slides" + git ls-files "$CONTENT_PREFIX/$lang/$coll_path"*.slides | + sed 's/^\(.*\)\.slides$/\1.pdf: \1.ps/' + printf '\n\n' + + echo "slide.$lang.pdf = \$(slide.$lang.slides:.slides=.pdf)" + echo "all-generated.$lang.slides = \$(slide.$lang.slides)" + echo "all-generated.$lang.pdf = \$(slide.$lang.pdf)" + for e in $(extensions); do { if ! printf '%s\n' "$e" | grep -qE "$page_ext_filter"; then @@ -185,7 +196,7 @@ for lang in $(langs); do sed "s|^\(.*\)\$|$CONTENT_PREFIX/$lang/\1feed.xml|" | varlist "all-generated.$lang.xml" - extensions '.series' '.categories' '.extrahtml' '.extrafeeds' '.index' '.xml' | + extensions '.series' '.categories' '.extrahtml' '.extrafeeds' '.index' '.xml' '.pdf' | sed "s|^\(.*\)\$|\$(all-generated.$lang\1)|" | varlist "all-generated.$lang" @@ -212,7 +223,7 @@ printf 'svgs = $(svgs.uncolored:.uncolored=)\n\n' } > "$CONTENT_PREFIX"/.gitignore -for e in $(extensions '.series' '.categories' '.extrahtml' '.extrafeeds' '.index' '.xml'); do +for e in $(extensions '.series' '.categories' '.extrahtml' '.extrafeeds' '.index' '.xml' '.pdf'); do langs | sed "s|^\(.*\)\$|\$(all-generated.\1$e)|" | varlist "all-generated$e" @@ -237,4 +248,6 @@ git ls-files "$CONTENT_PREFIX"/ | grep -v '\.md$' | grep -v '\.page$' | grep -v '\.uncolored$' | + grep -v '\.slides$' | + grep -v '\.ps$' | varlist 'static-content' |