Ignore favicon, optimize builds
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2021-02-25 20:18:42 +01:00
parent 55f8580e4c
commit ec527ca9cd
3 changed files with 7 additions and 5 deletions

View file

@ -6,14 +6,14 @@ steps:
- name: glibc-x86_64
image: gcc
commands:
- make clean && make all
- make clean && make CFLAGS=-O3 all
- mv dirl dirl-glibc-x86_64
- name: musl-x86_64
image: alpine
commands:
- apk update && apk add make git build-base linux-headers musl-dev
- make clean && make STATIC=-static all
- make clean && make CFLAGS="-static -O3" all
- mv dirl dirl-musl-x86_64
- name: publish binaries

3
dirl.c
View file

@ -246,5 +246,6 @@ dirl_skip(const char* name)
|| !strcmp(name, DIRL_HEADER) //
|| !strcmp(name, DIRL_ENTRY) //
|| !strcmp(name, DIRL_FOOTER) //
|| !strcmp(name, DIRL_STYLE); //
|| !strcmp(name, DIRL_STYLE) //
|| !strcmp(name, FAVICON); //
}

1
dirl.h
View file

@ -12,6 +12,7 @@
#define DIRL_ENTRY ".entry.tpl"
#define DIRL_FOOTER ".footer.tpl"
#define DIRL_STYLE "style.css"
#define FAVICON "favicon.ico"
/* Default template definitions
*