From da4e2efb9249cb8cd1e382a7653da0140bb1c95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 31 Mar 2017 08:28:10 +0200 Subject: Use a minimal POSIX shar implementation for self extracting executable This only requires POSIX shell utilies for extraction. The resulting archive is bigger (it is not gzip compressed) and startup will be slower due to many spawned processes. --- vis-single.sh | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100755 vis-single.sh (limited to 'vis-single.sh') diff --git a/vis-single.sh b/vis-single.sh deleted file mode 100755 index e779b67..0000000 --- a/vis-single.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -set -e - -VISTMP="$(mktemp -d -p "${TMPDIR:-/tmp}" .vis-XXXXXX)" -trap 'rm -rf "$VISTMP"' EXIT INT QUIT TERM HUP - -sed '1,/^__TAR_GZ_ARCHIVE_BELOW__$/d' "$0" | gzip -d | tar xC "$VISTMP" - -PATH="$VISTMP:$PATH" "$VISTMP/vis" "$@" - -exit $? - -__TAR_GZ_ARCHIVE_BELOW__ -- cgit v1.2.3