summaryrefslogtreecommitdiff
path: root/support/zblbuild/uninstall
blob: 034991bc2fa0a53ac75498c85fc2bab023ea4ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/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"