From 7506340d2456bb63d6ec2135defbe112af847d6c Mon Sep 17 00:00:00 2001 From: dtb Date: Sat, 5 Aug 2023 13:35:21 -0400 Subject: [PATCH] blah works --- homepage/Makefile | 21 ++++++++++++++------- homepage/homepage | 4 ++-- homepage/homepage.local | 25 +++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 9 deletions(-) mode change 100644 => 100755 homepage/homepage create mode 100755 homepage/homepage.local diff --git a/homepage/Makefile b/homepage/Makefile index 3e6e8c5..1de5133 100644 --- a/homepage/Makefile +++ b/homepage/Makefile @@ -1,8 +1,20 @@ .POSIX: -FILES = CNAME css homepage img Makefile README +FILES = CNAME css homepage homepage.local img Makefile README RM = rm -f +test: + mkdir test + cp -R $(FILES) test/ + make -C test generate + +clean_test: + rm -r test + +retest: + make clean_test + make test + generate: clean.sh clean.sh: @@ -11,9 +23,4 @@ clean.sh: clean: clean.sh sh clean.sh -test: - mkdir test - cp -R $(FILES) test/ - make -C test generate - -.PHONY: generate clean test +.PHONY: generate clean test clean_test retest diff --git a/homepage/homepage b/homepage/homepage old mode 100644 new mode 100755 index 9d084b8..223f699 --- a/homepage/homepage +++ b/homepage/homepage @@ -3279,12 +3279,12 @@ ideas' witlessness; ideas' witnesses; ideas- -__NAVIGATION__ +$!NAVIGATION /blah/Suffix -__NAVIGATION__ +$!NAVIGATION No rights reserved, all rights exercised, rights turned to lefts, left in this corner of the web. diff --git a/homepage/homepage.local b/homepage/homepage.local new file mode 100755 index 0000000..e8c99c8 --- /dev/null +++ b/homepage/homepage.local @@ -0,0 +1,25 @@ +#!/bin/sh + +ls ./blah/*.html \ + | sed -e 's_.*/__g' \ + -e 's/\.html$//g' \ + | sort -r \ + | tee ./feed.xml \ + | sed -e 's_.*_&_g' \ + -e "1i\ +blah\ +
.." \
+		-e '$a
' \ + >./blah/index.html + +sed -i feed.xml \ + -e "1i\ +\ +trinity.moe/blahhttps://trinity.moe/blah\ +$(date)" \ + -e "s,^....-..-..\$,\ +&\ +https://trinity.moe/blah/&.html\ +blah post for &\ +&," \ + -e '$a'