From 0a8f5f504dab7d9cb322a0e1a20f492d708ed92b Mon Sep 17 00:00:00 2001 From: dtb Date: Sun, 6 Aug 2023 17:16:50 -0400 Subject: [PATCH] redundant --- homepage/homepage.local | 53 ----------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 homepage/homepage.local diff --git a/homepage/homepage.local b/homepage/homepage.local deleted file mode 100755 index dd54f37..0000000 --- a/homepage/homepage.local +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -set -x - -for f in ./blah/*.html -do - awk ' -BEGIN { n = 0; } -/^\$!NAVIGATION$/ { - if(++n == 1){ - print $0 "\n\n" substr(FILENAME, 8, 10) "\n" - }else - print "\n" $0; -} -!/^\$!NAVIGATION$/ { print $0 } -' "$f" >"$f.tmp" \ - && mv "$f.tmp" "$f" \ - || rm "$f.tmp" - f="$(printf '%s\n' "$f" | sed -e 's,./blah/,,' -e 's,\.html$,,')" - test -n "$last" \ - && sed -i "./blah/$last.html" \ - -e "s,\$!NAVIGATION,$nav\>,g" \ - && nav="\<" \ - || true - nav="$nav^" - last="$f" -done -sed -i "s,\$!NAVIGATION,$nav,g" "./blah/$last.html" - -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'