summaryrefslogtreecommitdiff
path: root/support/zblbuild/install
blob: 7aaa470220b4f0af39a62052aa60d524361a27d1 (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
#!/bin/bash
# INSTALLATION 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 ``install`` 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

chmod +x zblbuild
chmod +x zblbuild.desktop
cp zblbuild /usr/bin
mkdir /usr/share/icons/zblbuild
cp bibtex_icon.png /usr/share/icons/zblbuild
cp zblbuild.desktop /home/$USERNAME/Desktop
printf "\nzblbuild installed\n"