From: Mart Lubbers Date: Mon, 25 Sep 2017 09:01:44 +0000 (+0200) Subject: tlmgr is now separate in itex repo X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=1752f207eb247fb4ae5b1685c34ae9ac3a16a7e2;p=dotfiles.git tlmgr is now separate in itex repo --- diff --git a/x/.local/bin/tlmgri b/x/.local/bin/tlmgri deleted file mode 100755 index 64c3051..0000000 --- a/x/.local/bin/tlmgri +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -if [ "$#" -ne 1 ] -then - echo "Usage: $0 FILE" - exit 1 -fi - -PKGS="$(tlmgr search --global --file "/$1" 2>/dev/null | grep -Po "^.*(?=:$)")" -if [[ -z "$PKGS" ]]; then exit 1; fi -if [[ $(wc -w <<< "$PKGS") -eq 1 ]] -then - tlmgr install "$PKGS" -else - select package in $PKGS; do - INDEX=1 - for p in $PKGS; do - if [ $((INDEX++)) -eq $REPLY ]; then - tlmgr install "$p" - fi - done - break; - done -fi