#!/bin/bash # UNINSTALLATION script for: # ZBLBUILD # version 0.1c # guido.milanese@unicatt.it # 2019.08.28 # # Copyright (c) 2019 Guido Milanese # License: # The LaTeX Project Public License License (LPPL) # version 1.3c or later # This work may be distributed and/or modified under the # conditions of the LaTeX Project Public License, either version 1.3 # of this license or (at your option) any later version. # The latest version of this license is in # http://www.latex-project.org/lppl.txt # and version 1.3 or later is part of all distributions of LaTeX # version 2005/12/01 or later. # # This work has the LPPL maintenance status `maintained'. # # The Current Maintainer of this work is Guido Milanese. # # This work consists of the file ``uninstall`` for zblbuild-select # if [[ `id -u` -ne 0 ]] ; then printf "Please run as root/sudo\n" ; exit 1 ; fi printf "Please enter your username (not root)\n" read -p "Username: " USERNAME rm /usr/bin/zblbuild && printf "\n\t/usr/bin/zblbuild removed\n"\ || printf "\t/usr/bin/zblbuild not found or permission denied\n" rm /usr/share/icons/zblbuild/bibtex_icon.png\ && printf "\t/usr/share/icons/zblbuild/bibtex_icon.png removed\n"\ || printf "\t/usr/share/icons/zblbuild/bibtex_icon.png not found or permission denied\n" rm -d /usr/share/icons/zblbuild\ && printf "\t/usr/share/icons/zblbuild removed\n"\ || printf "\t/usr/share/icons/zblbuild not found or permission denied\n" rm /home/$USERNAME/Desktop/zblbuild.desktop\ && printf "\t/home/$USERNAME/Desktop/zblbuild.desktop removed\n"\ || printf "\t/home/$USERNAME/Desktop/zblbuild.desktop not found or permission denied\n" printf "\nDone\n"