forked from domi91c/Submitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
29 lines (27 loc) · 914 Bytes
/
install
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
#!/bin/ksh
echo "This will give 711 permission to your home directory, are you sure?(Y/N)"
read resp
if [ $resp == Y ] || [ $resp == y ]; then
echo "please wait, compiling"
g++ -Wall -std=c++0x -o ~/submit Command.cpp Submitter.cpp SubVals.cpp Vals.cpp Date.cpp Line.cpp User.cpp main.cpp
chmod 711 ~/.
chmod 711 ~/submit
echo "Permissions set"
if [ -d ~/submitter_files ]; then
echo "submitter_files already exist and will be used"
else
mkdir ~/submitter_files
fi
chmod 711 ~/submitter_files
cp template.cfg ~/submitter_files/.
if [ -f ~/submitter_files/accommodations.cfg ]; then
echo "accommodations.cfg already exist; the new one will be copied to"
echo " accommodationsTemplate.cfg"
cp accommodations.cfg ~/submitter_files/accommodationsTemplate.cfg
else
cp accommodations.cfg ~/submitter_files/.
fi
echo "installation complete"
else
echo "aborted"
fi