summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
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"