diff options
author | dweller <dweller@cabin.digital> | 2025-01-16 17:18:45 +0200 |
---|---|---|
committer | dweller <dweller@cabin.digital> | 2025-01-16 17:18:45 +0200 |
commit | 449c078661046665ba0cc87a0f632085a77df8a5 (patch) | |
tree | f28f961cf2c07e37fb77e34a882e5ba87e411eb3 /README |
Diffstat (limited to 'README')
-rw-r--r-- | README | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -0,0 +1,38 @@ +URLTOOL +======= + +URL tool is a simple shell tool to encode and decode URI encoding as set by +RFC3986. + +* `urltool` reads lines from files or stdin and encodes/decodes them onto stdout +* `urlenc` and `urldec` are symlinks to `urltool` that read and encode/decode + their arguments and output to stdout. + + +## Build & Install + +Only tested on Linux, but should be POSIX compliant. The only dependency is +libc with getline(3). + +Just run `./build.sh` to build "normally", you can set $CC and $CFLAGS from env. +If you have `musl-gcc` installed and prefer static executables like me, you can +run `./build-musl.sh` to do so. + +By default a debug build with debug information is created. `./build.sh fast` +to build with optimizations on. Assumes GCC-like flags. + +`./clean.sh` to remove the build artifacts. + +`./install.sh` to install to "${DESTDIR}${PREFIX}/${BINDIR}" + +The scripts are tiny so feel free to edit. + + +## Why? + +To help me build shell pipelines that do HTTP GET requests and alike. +See examples/. + + +## Who? +dweller from cabin.digital |