about summary refs log tree commit diff stats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* ftp: fix unnecessary slashes being added to path; move bindings/curlbptato2023-12-151-3/+3
| | | | also in ftp: clean up resources before exit
* socketstream, serversocket: portable bindUnixbptato2023-12-141-1/+1
| | | | | reimplementing it portably in Nim seems incredibly annoying, so we just use C
* Makefile: add missing mkdir commandsbptato2023-12-141-0/+9
|
* Makefile: add fwrapv to QJS buildbptato2023-12-141-1/+1
| | | | as done in upstream
* Various fixesbptato2023-12-131-19/+25
| | | | | | | * Makefile: fix parallel build, add new binaries to install target * twtstr: split out libunicode-related stuff to luwrap * config: quote default gopher2html URL env var for unquote * adapter/: get rid of types/url dependency, use CURL url in all cases
* break up twtstr somewhatbptato2023-12-131-2/+4
| | | | | Avoid computing e.g. charwidth data for http which does not need it at all.
* Move http out of main binarybptato2023-12-131-14/+23
| | | | | | | | | | | | Now it is (technically) no longer mandatory to link to libcurl. Also, Chawan is at last completely protocol and network backend agnostic :) * Implement multipart requests in local CGI * Implement simultaneous download of CGI data * Add REQUEST_HEADERS env var with all headers * cssparser: add a missing check in consumeEscape
* Move gopher to adapter/bptato2023-12-121-2/+12
| | | | Also, move default urimethodmap config to res.
* Move out ftp: protocol; fix some local CGI bugsbptato2023-12-121-2/+10
|
* Move out file: protocol handling to adapter/bptato2023-12-121-3/+6
|
* adapter/: re-structurebptato2023-12-121-12/+12
|
* local CGI improvements, move data: to cgi-binbptato2023-12-121-1/+5
| | | | error codes are WIP, not final yet...
* local CGI: add mapped URI env vars; move about: to adaptersbptato2023-12-121-1/+5
| | | | | | | | | | | | | | | * Add MAPPED_URI_* as environment variables when a request is coming from urimethodmap It costs us compatibility with w3m, but it seems to be a massive improvement over smuggling in the URL as a query string and then writing an ad-hoc parser for every single urimethodmap script. The variables are set for every urimethodmap request, to avoid accidental leaking of global environment variables. * Move about: to adapters (an obvious improvement over the previous solution)
* Makefile: clean up libexecdir on uninstallbptato2023-12-111-2/+8
|
* Add support for gemini by default, update readmebptato2023-12-101-1/+11
| | | | | No need to leave gemini support in the bonus folder. Still TODO: proxy support.
* Separate gopher conversion from main binarybptato2023-12-101-17/+40
| | | | | | | | | | | | | | | | | | | | | Now we use a (much simplified) gopher2html binary in libexec, instead of converting gopher directories to HTML in loader/gopher. This has two advantages: * Less ugly conversion logic in the loader module; we can just convert the file line by line. (The previous converter also had some correctness issues, that is fixed now as well.) * If the user desires, they can replace the gopher converter with another binary using the mailcap mechanism. The disadvantages are: * For now, source display is broken. This is a problem with all mailcap filters in general, and should be fixed in the future. (That said, the previous version also only displayed the converted HTML source, which was not really useful anyway.) * The proper directory structure is required for this to work; OTOH plenty of work has been done so that this is as frictionless as possible, so it should not really be a problem.
* Enable finger protocol by defaultbptato2023-12-101-2/+16
| | | | | | * Add a default urimethodmap that points finger: to cha-finger * Install cha-finger to /usr/local/libexec/cha/cgi-bin by default * cha-finger: use ALL_PROXY if given, die if curl is not installed
* Makefile: also remove QJSOBJbptato2023-12-091-0/+1
|
* Makefile: only remove target's objdir on cleanbptato2023-12-091-2/+1
|
* Makefile: properly list QJS object file dependenciesbptato2023-12-091-0/+13
|
* Makefile: disable CONFIG_BIGNUM for QJSbptato2023-12-051-2/+1
| | | | We do only use BigInt, so the flag is no longer necessary.
* Makefile: fix $(FLAGS) not being usedbptato2023-11-301-2/+3
|
* Makefile: rewritebptato2023-11-281-65/+60
| | | | | | | * Get rid of useless targets * Use real recipes instead of command runner targets * When given, use environment variables * Document Makefile stuff in doc/build.md
* Makefile: create manpage directories, fix wrong file modesbptato2023-10-141-6/+8
| | | | | | | * mkdir manpage directories too (not just prefix/bin) * use 0644 file mode instead of the nonsensical 0655 See https://todo.sr.ht/~bptato/chawan/1
* slightly refactor md to man preprocessing, update manpagebptato2023-10-131-4/+1
|
* makefile fixesbptato2023-10-011-2/+6
|
* Makefile: fix permsbptato2023-09-301-6/+6
|
* Makefile: fix manpage copybptato2023-09-301-1/+1
|
* Add urimethodmap supportbptato2023-09-301-1/+3
| | | | yay
* loader: add local-cgibptato2023-09-301-10/+14
| | | | | | | | | | | Add w3m-style local CGI support. It is not quite as powerful as w3m's local CGI, because it lacks an equivalent to W3m-control. Not sure if it's worth adding; we certainly shouldn't allow passing JS in headers, but a custom language for headers does not sound like a great idea either... eh, idk. also, TODO add multipart
* small Makefile improvementbptato2023-09-261-2/+5
|
* Build quickjs with bignum enabledbptato2023-09-231-2/+3
| | | | | | | BigInt is standard and widely available in browsers. We have no reason to exclude it. (BigFloat/BigDecimal are not, so we do not add them for now.)
* improve manpagesbptato2023-09-201-7/+14
|
* config.md: more preprocessingbptato2023-09-201-1/+3
|
* add table_rewrite.shbptato2023-09-201-1/+1
| | | | | | pandoc can only generate manpage tables from markdown tables, but the markdown pipe table syntax is horrible. So instead of rewriting our markdown documentation to use that syntax, just programmatically rewrite it.
* add manpagesbptato2023-09-201-0/+11
| | | | still needs some work
* Makefile: add debugger:native to debug targetbptato2023-09-111-1/+1
|
* Allow overriding libcurl namebptato2023-08-261-1/+1
| | | | for better compatibility with curl-impersonate
* Move charsets into chakasubptato2023-08-141-0/+8
| | | | Operation "modularize Chawan somewhat" part 1
* makefile: fix qjsobj not being createdbptato2023-08-131-1/+2
|
* Revert "Makefile: add ./ to rm -rf"bptato2023-08-131-1/+1
| | | | | | On a second thought, this makes no sense. This reverts commit 3c8d95fefb678155d0c923aac8240b575ce79d5f.
* Makefile: add ./ to rm -rfbptato2023-08-101-1/+1
| | | | just to be sure
* Makefile: fix conflicts with directoriesbptato2023-08-101-8/+8
|
* Update makefilebptato2023-07-281-4/+8
| | | | small re-organization
* Makefile: remove random echo statementbptato2023-06-241-1/+0
|
* Add dir to qjs target, rename makefilebptato2023-06-231-0/+49
|
* More css stuffbptato2021-08-041-14/+0
|
* CSS selectors and re-organizationbptato2021-07-301-4/+2
|
* ...bptato2021-03-171-5/+12
|
* Moved stuff etcbptato2021-03-131-4/+4
|