blah works
This commit is contained in:
parent
f733e587e5
commit
7506340d24
@ -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
|
||||
|
4
homepage/homepage
Normal file → Executable file
4
homepage/homepage
Normal file → Executable file
@ -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.
|
||||
|
25
homepage/homepage.local
Executable file
25
homepage/homepage.local
Executable file
@ -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_.*_<A HREF="/blah/&.html">&</A>_g' \
|
||||
-e "1i\
|
||||
<!DOCTYPE html><HEAD><TITLE>blah</TITLE></HEAD>\
|
||||
<BODY><PRE><A HREF="..">..</A>" \
|
||||
-e '$a</PRE></BODY></HTML>' \
|
||||
>./blah/index.html
|
||||
|
||||
sed -i feed.xml \
|
||||
-e "1i\
|
||||
<?xml version=\"1.0\" encoding=\"utf-8\"?><rss version=\"2.0\">\
|
||||
<channel><title>trinity.moe/blah</title><link>https://trinity.moe/blah</link>\
|
||||
<lastBuildDate>$(date)</lastBuildDate>" \
|
||||
-e "s,^....-..-..\$,<item>\
|
||||
<title>&</title>\
|
||||
<link>https://trinity.moe/blah/&.html</link>\
|
||||
<description>blah post for &</description>\
|
||||
<pubdate>&</pubdate></item>," \
|
||||
-e '$a</channel></rss>'
|
Loading…
Reference in New Issue
Block a user