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\ -
.." \ - -e '$a