-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·40 lines (30 loc) · 962 Bytes
/
install
File metadata and controls
executable file
·40 lines (30 loc) · 962 Bytes
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
#!/bin/bash
# check if latex is installed
installed=`which latex`
# ask user if to install latex if not installed
if [ ! -n "$installed" ]; then
# install texfull-live
echo '............latex not installed, install latex?'
select yn in "Y" "n"; do
case $yn in
Y ) sudo apt-get install texlive-full; break;;
n ) exit;;
esac
done
fi
echo '...........latex has been installed'
# move template to /etc/appa folder
echo 'making a folder in ~/.appa/'
mkdir -p ~/.appa
echo 'copying source files into /etc/appa'
cp -r src/* src/Makefile ~/.appa/src/blank/
cp -r src/science/* src/Makefile ~/.appa/src/science/
cp -r src/presentation/* src/Makefile ~/.appa/src/presentation/
# copy appa script into /usr/local/bin
echo 'copying appa to /usr/local/bin'
# create the executable
chmod +x bin/appa
# copy to filesystem local bin folder
sudo cp bin/appa /usr/local/bin
# done
echo 'Installation finished.'