1
0
mirror of https://git.sr.ht/~sircmpwn/gmnisrv synced 2024-11-03 06:07:17 -05:00
gmnisrv/configure
Drew DeVault 7e8a953794 Initial pass on regex routing support
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.
2020-10-29 22:47:56 -04:00

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