Compare commits
6 Commits
52613e8176
...
dd3409a4f6
Author | SHA1 | Date |
---|---|---|
Case Duckworth | dd3409a4f6 | |
Case Duckworth | e9f7d5acef | |
Case Duckworth | df0677b072 | |
Case Duckworth | 1dfc8485d4 | |
Case Duckworth | 649d4e0ff4 | |
Case Duckworth | 2b6473b314 |
|
@ -0,0 +1 @@
|
|||
* text=auto
|
10
G
10
G
|
@ -6,6 +6,8 @@
|
|||
# symbols (?)
|
||||
PHI="<span class=phi>ⱷ</span>"
|
||||
|
||||
T()(sed q "$1")
|
||||
|
||||
# functions
|
||||
Nav() { # Nav <INDEX> <files...>
|
||||
idx="$1";shift
|
||||
|
@ -19,19 +21,19 @@ Nav() { # Nav <INDEX> <files...>
|
|||
if [ "$post" != "$idx" ]; then
|
||||
echo "<a href=\"$ROOT/${post#*/}\""
|
||||
[ "$post" = "$F" ] && echo "class=current"
|
||||
echo ">$(T $post)</a>"
|
||||
echo ">$(T "$post")</a>"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
alias T=sed\ q
|
||||
|
||||
# redefine X for better logging
|
||||
X()(eval "$(P "cat<<.";cat;P;P .)")
|
||||
|
||||
. hell/hell
|
||||
|
||||
# MAIN
|
||||
set +C # it's clobberin' time!!!
|
||||
[ $DEBUG ] && set -x # debug if DEBUG is set
|
||||
for F
|
||||
do
|
||||
printf>&2 '%s\t...' "$F"
|
||||
|
@ -40,4 +42,4 @@ do
|
|||
} || {
|
||||
echo>&2 "FAIL."
|
||||
}
|
||||
done
|
||||
done
|
||||
|
|
2
L
2
L
|
@ -17,7 +17,7 @@
|
|||
</main>
|
||||
<footer>
|
||||
<span class=phi>© 2017–$(date +%Y) Case Duckworth</span>
|
||||
$(Nav - I/.{license,colophon}.html)
|
||||
$(Nav - I/.??*)
|
||||
<a href="${ROOT}/.atom.xml">feed</a>
|
||||
</footer>
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# acdw.net
|
||||
|
||||
BUILD:= nef/nef
|
||||
LHTML:= hell/hell
|
||||
|
||||
NEF = G # Generator (shell functions and generator loop)
|
||||
NEF+= R # Renderer (awk script to convert to compliant HTML)
|
||||
NEF+= L # Layout (template script expanded by X)
|
||||
|
||||
INPUT = $(wildcard I/*) # regular files
|
||||
INPUT+= $(wildcard I/.??*) # hidden files (for the footer)
|
||||
|
||||
STATIC = $(wildcard S/*) # static files
|
||||
|
||||
OUTPUT =$(patsubst I/%,O/%,$(INPUT))
|
||||
OUTPUT+=$(patsubst S/%,O/S/%,$(STATIC))
|
||||
|
||||
.PHONY: all clean
|
||||
all: $(OUTPUT)
|
||||
clean:
|
||||
rm -rf O
|
||||
|
||||
O:; mkdir -p O
|
||||
O/S: O; mkdir -p O/S
|
||||
|
||||
O/S/%: S/% O/S
|
||||
cp $< $@
|
||||
|
||||
O/%: I/% $(NEF)
|
||||
$(BUILD) $<
|
||||
|
||||
# submodules
|
||||
$(BUILD) $(LHTML):
|
||||
git submodule update --init --recursive
|
2
nef
2
nef
|
@ -1 +1 @@
|
|||
Subproject commit 9ae2eef082ddaa41f773059cb485db4e39c63553
|
||||
Subproject commit a4d6574ffb752b31093c30fe3c7d68710e9e1b50
|
Loading…
Reference in New Issue