From 449c078661046665ba0cc87a0f632085a77df8a5 Mon Sep 17 00:00:00 2001 From: dweller Date: Thu, 16 Jan 2025 17:18:45 +0200 Subject: initial commit --- README | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..dc89f94 --- /dev/null +++ b/README @@ -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 -- cgit v1.2.3