use png for favicon, generate thumbnails in background on build, and return exit status from build
This commit is contained in:
parent
3558233dd5
commit
1e232e2b9a
2 changed files with 7 additions and 3 deletions
8
build.sh
8
build.sh
|
@ -45,8 +45,12 @@ if [ "$1" = "-t" ]; then
|
||||||
shift && ./tw.sh $@
|
shift && ./tw.sh $@
|
||||||
fi
|
fi
|
||||||
./main
|
./main
|
||||||
./thumbnailer.sh build
|
exitstatus=$?
|
||||||
|
if [ "${exitstatus}" = "0" ]; then
|
||||||
|
./thumbnailer.sh build &
|
||||||
|
fi
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
rm -f ./main
|
rm -f ./main
|
||||||
|
|
||||||
|
exit ${exitstatus}
|
2
main.c
2
main.c
|
@ -535,7 +535,7 @@ FILE* build(FILE* f, Lexicon* l, char* name, char* srcpath) {
|
||||||
}
|
}
|
||||||
fprintf(
|
fprintf(
|
||||||
f,
|
f,
|
||||||
"<link rel='shortcut icon' href='/favicon.ico'>\n"
|
"<link rel='shortcut icon' href='/favicon.png'>\n"
|
||||||
"<title>" NAME " — %s</title>\n",
|
"<title>" NAME " — %s</title>\n",
|
||||||
ismetanav(name) ? "home" : name);
|
ismetanav(name) ? "home" : name);
|
||||||
fputs("</head>\n", f);
|
fputs("</head>\n", f);
|
||||||
|
|
Loading…
Reference in a new issue