From 52f9b8dfb34dc7b610251ee3e4c59ce053790a37 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 20 Jun 2021 06:41:41 -0300 Subject: Generate dependencies.svg and paku.html inside public/ directly --- Makefile | 14 ++++++++------ scripts/paku | 7 ++++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index bbb36ab..25763ba 100644 --- a/Makefile +++ b/Makefile @@ -24,14 +24,16 @@ dev-check: check sh aux/workflow/assert-readme.sh $(NAME) $(MAILING_LIST) clean: - rm -rf public/ dependencies.svg paku.html + rm -rf public/ -dependencies.svg: dependencies.dot - dot dependencies.dot -Tsvg > dependencies.svg +public/dependencies.svg: dependencies.dot + mkdir -p public + dot dependencies.dot -Tsvg > public/dependencies.svg -paku.html: paku.json +public/paku.html: paku.json + mkdir -p public sh scripts/paku -l -public: README.md TODOs.md dependencies.svg paku.html +public: README.md TODOs.md public/dependencies.svg public/paku.html sh aux/workflow/public.sh "EuAndreh's package repository" $(NAME) $(MAILING_LIST) - cp EuAndreh.key dependencies.svg paku.html public/ + cp EuAndreh.key public/ diff --git a/scripts/paku b/scripts/paku index 939db80..4f40b4d 100755 --- a/scripts/paku +++ b/scripts/paku @@ -240,7 +240,8 @@ refresh_packages() { } report_index() { - cat < paku.html + HTML_OUT='public/paku.html' + cat < "$HTML_OUT" @@ -277,7 +278,7 @@ EOF ID='latest' fi - cat <> paku.html + cat <> "$HTML_OUT"
  • $NAME ($VERSION) - $DESCRIPTION @@ -341,7 +342,7 @@ EOF EOF done - cat <> paku.html + cat <> "$HTML_OUT" -- cgit v1.2.3