From 5619ad61667dd1a974bf491107b3e73ed333c358 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 25 Jun 2023 14:18:15 -0700 Subject: add recipes and grammar changes to index --- export.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'export.sh') diff --git a/export.sh b/export.sh index 80499ca..085ea64 100755 --- a/export.sh +++ b/export.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash -emacs index.org --batch -f org-html-export-to-html --kill -tail -n +4 index.html | tee index.php -rm index.html +shopt -s nullglob +for i in *.org; do + name="${i%%.*}" + echo $name + emacs "$i" --batch -f org-html-export-to-html --kill + tail -n +4 "$name.html" | tee "$name.php" + rm "$name.html" "$name.html~" +done -- cgit v1.3