summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/tikztosvg/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/tikztosvg/install.sh')
-rw-r--r--Master/texmf-dist/doc/support/tikztosvg/install.sh66
1 files changed, 0 insertions, 66 deletions
diff --git a/Master/texmf-dist/doc/support/tikztosvg/install.sh b/Master/texmf-dist/doc/support/tikztosvg/install.sh
deleted file mode 100644
index 1d6a22957b6..00000000000
--- a/Master/texmf-dist/doc/support/tikztosvg/install.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-#
-# 2021 (C) Pablo
-# Free use of this software is granted under the terms of the GPL-3.0 License
-
-puts ()
-{
- printf "\033[1m\033[38;5;%sm[%s]\033[m %s\n\n" "$3" "$1" "$2"
-}
-
-error ()
-{
- puts ERROR "$1" 9
- exit 1
-}
-
-dependencyWarning ()
-{
- puts WARNING "$(printf "The command '%s' could not be found.\nPlease make sure it is included in the \$PATH enviroment variable or follow the installation instructions on %s." "$1" "$2")" 3
-}
-
-message ()
-{
- puts INSTALLER "$1" 2
-}
-
-if [ "$(id -u)" -ne "0" ]
-then
- error "This script requires administrator-privileges"
-fi
-
-if ! [ -x "$(command -v xelatex)" ]
-then
- dependencyWarning "xelatex" "https://tug.org/texlive/"
-fi
-
-if ! [ -x "$(command -v pdf2svg)" ]
-then
- dependencyWarning "pdf2svg" "https://github.com/dawbarton/pdf2svg"
-fi
-
-message "Installing tikztosvg(1)"
-
-if [ -f "$HOME/.local/bin/tikztosvg" ]
-then
- rm "$HOME/.local/bin/tikztosvg"
-fi
-
-tmp="$(mktemp -d)"
-wget https://git.sr.ht/~pablo-pie/tikztosvg/blob/master/tikztosvg -P "$tmp" \
- && install -g 0 -o 0 -m 755 "$tmp/tikztosvg" /usr/bin/ \
- || exit 1
-
-message "Installing manual entry for tikztosvg(1)"
-wget https://git.sr.ht/~pablo-pie/tikztosvg/blob/master/man/tikztosvg.1 -P "$tmp" \
- && install -g 0 -o 0 -m 644 "$tmp/tikztosvg.1" /usr/share/man/man1/ \
- || exit 1
-
-if [ -f "/usr/share/man/man1/tikztosvg.1.gz" ]
-then
- rm "/usr/share/man/man1/tikztosvg.1.gz"
-fi
-
-gzip "/usr/share/man/man1/tikztosvg.1"
-rm "$tmp" -r
-