From: Amin Bandali Date: Tue, 21 Apr 2020 01:48:04 +0000 (-0400) Subject: rename feed_* to meta_feed_* and simplify wildcard function call X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/commitdiff_plain/466a17dd8c5626d3c7efe9d977bad3cd8ae881a2?ds=inline rename feed_* to meta_feed_* and simplify wildcard function call --- diff --git a/Makefile b/Makefile index 4fb327f..d4a1667 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ -SRC := $(filter-out $(wildcard feed_*) meta_notes.m4,$(wildcard *.m4)) +SRC := $(filter-out $(wildcard meta_*),$(wildcard *.m4)) OUTPUTS := $(patsubst %.m4,out/%.html,$(SRC)) STATIC := $(patsubst static/%,out/%,$(wildcard static/*)) all: $(OUTPUTS) out/notes.atom out/notes.rss out/style.css $(STATIC) out/%.html: %.m4 header.html footer.html ; m4 $< > $@ -out/notes.atom: feed_atom.m4 ; m4 $< > $@ -out/notes.rss: feed_rss.m4 ; m4 $< > $@ +out/notes.atom: meta_feed_atom.m4 ; m4 $< > $@ +out/notes.rss: meta_feed_rss.m4 ; m4 $< > $@ $(STATIC): ; ln -s $(PWD)/static/$(notdir $@) $@ deploy: diff --git a/feed_atom.m4 b/feed_atom.m4 deleted file mode 100644 index f0c9a46..0000000 --- a/feed_atom.m4 +++ /dev/null @@ -1,14 +0,0 @@ -include(meta_notes.m4)dnl - - -Amin Bandali's Personal Site -tag:bandali.eu.org,atom,notes/ - - -syscmd(date -Iseconds -u | tr -d \\n) -define(__feed_atom)dnl -define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1, - `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')') -fordown(`__i',__latest,eval(__latest-10),` - syscmd(sed "s/\&/\&/g;s/>/\>/g;s/ diff --git a/feed_rss.m4 b/feed_rss.m4 deleted file mode 100644 index 8ebecd8..0000000 --- a/feed_rss.m4 +++ /dev/null @@ -1,17 +0,0 @@ -include(meta_notes.m4)dnl - - - -Amin Bandali's Personal Site -Notes and blog posts by Amin Bandali -https://bandali.eu.org -syscmd(date -uR | tr -d \\n) -syscmd(date -uR | tr -d \\n) -1800 -define(__feed_rss)dnl -define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1, - `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')') -fordown(`__i',__latest,eval(__latest-10),` - syscmd(sed "s/\&/\&/g;s/>/\>/g;s/ - diff --git a/meta_feed_atom.m4 b/meta_feed_atom.m4 new file mode 100644 index 0000000..f0c9a46 --- /dev/null +++ b/meta_feed_atom.m4 @@ -0,0 +1,14 @@ +include(meta_notes.m4)dnl + + +Amin Bandali's Personal Site +tag:bandali.eu.org,atom,notes/ + + +syscmd(date -Iseconds -u | tr -d \\n) +define(__feed_atom)dnl +define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1, + `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')') +fordown(`__i',__latest,eval(__latest-10),` + syscmd(sed "s/\&/\&/g;s/>/\>/g;s/ diff --git a/meta_feed_rss.m4 b/meta_feed_rss.m4 new file mode 100644 index 0000000..8ebecd8 --- /dev/null +++ b/meta_feed_rss.m4 @@ -0,0 +1,17 @@ +include(meta_notes.m4)dnl + + + +Amin Bandali's Personal Site +Notes and blog posts by Amin Bandali +https://bandali.eu.org +syscmd(date -uR | tr -d \\n) +syscmd(date -uR | tr -d \\n) +1800 +define(__feed_rss)dnl +define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1, + `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')') +fordown(`__i',__latest,eval(__latest-10),` + syscmd(sed "s/\&/\&/g;s/>/\>/g;s/ +