mirror of
https://git.sr.ht/~sircmpwn/gmnisrv
synced 2024-09-01 05:54:15 -04:00
All this does is parse the regexes out of the config file. I've vendored libregexp from Bellard's quickjs project, because it's reasonably small and self-contained, and POSIX regexes don't support captures. We're eventually going to want captures for URL rewrites, so this'll do for now.
24 lines
322 B
Bash
Executable File
24 lines
322 B
Bash
Executable File
#!/bin/sh -e
|
|
srcdir=${SRCDIR:-$(dirname "$0")}
|
|
eval ". $srcdir/config.sh"
|
|
|
|
gmnisrv() {
|
|
genrules gmnisrv \
|
|
src/config.c \
|
|
src/escape.c \
|
|
src/ini.c \
|
|
src/log.c \
|
|
src/main.c \
|
|
src/mime.c \
|
|
src/regexp.c \
|
|
src/serve.c \
|
|
src/server.c \
|
|
src/tls.c \
|
|
src/url.c \
|
|
src/util.c
|
|
}
|
|
|
|
all="gmnisrv"
|
|
|
|
run_configure
|