change latest changes display, use the new makros

This commit is contained in:
opfez 2022-01-30 22:52:25 +01:00
parent 4b9f7c3477
commit afcfddf5e6
4 changed files with 11 additions and 11 deletions

View File

@ -1,12 +1,12 @@
CFLAGS = -Wall -Wextra -Werror -std=c99 -pedantic-errors
CFLAGS = -Wall -Wextra -Werror -std=c99 -pedantic
FORMAT = ./format
default: $(FORMAT) gen
default: gen
$(FORMAT): format.c
$(CC) $(CFLAGS) $< -o $@
gen: site-src/*
gen: $(FORMAT) site-src/*
./gen.sh
.PHONY: clean

8
gen.sh
View File

@ -27,10 +27,10 @@ for file in site-src/*; do
fi
if git log | grep "\w*\[$bn\]" > /dev/null; then
echo "\n\nLatest changes to this page:\n\n" >> $tmp
echo '``' >> $tmp
git log --grep="\[$bn\]" --format="%as:%s" | sed "s/\[.*\]//g" >> $tmp
echo '``' >> $tmp
git log --grep="\[$bn\]" --format="%as:%s" \
| sed "s/\[.*\]//g" \
| sed "s/^/> /g" \
| sed "s/$/\n/g" >> $tmp
fi
./format $tmp site/$bn.html

View File

@ -1,6 +1,6 @@
#makro FG = #ddd
#makro NORMALBG = #111
#makro CODEBG = #1a1a1a
#makro FG=#ddd
#makro NORMALBG=#111
#makro CODEBG=#1a1a1a
body {
color: FG;
background: NORMALBG;

View File

@ -12,5 +12,5 @@ Welcome to {Codex}.
{Computation}
{Language}
#makro DATE @ date -I
#makro DATE@date -I
The wiki was last generated DATE.