summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2025-01-16 17:18:45 +0200
committerdweller <dweller@cabin.digital>2025-01-16 17:18:45 +0200
commit449c078661046665ba0cc87a0f632085a77df8a5 (patch)
treef28f961cf2c07e37fb77e34a882e5ba87e411eb3 /install.sh
initial commitHEADmaster
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..5167c8d
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+BINDIR=${BINDIR:-bin}
+PREFIX=${PREFIX:-/usr/local}
+
+install -d "${DESTDIR}${PREFIX}/${BINDIR}"
+install -sm 755 urltool "${DESTDIR}${PREFIX}/${BINDIR}"
+ln -rsf "${DESTDIR}${PREFIX}/${BINDIR}/urltool" "${DESTDIR}${PREFIX}/${BINDIR}/urldec"
+ln -rsf "${DESTDIR}${PREFIX}/${BINDIR}/urltool" "${DESTDIR}${PREFIX}/${BINDIR}/urlenc"