forked from BonnyAD9/makemake-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-all
executable file
·42 lines (34 loc) · 887 Bytes
/
install-all
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
#:/usr/bin/bash
# this script will install all the makemake templates in this repo
# it assumes that you already have makemake installed in path
# you must have the NEW MAKEMAKE
type makemake &>/dev/null
EC=$?
if [[ $EC != 0 ]] ; then
echo "Failure: makemake is not installed"
exit 1
fi
PRMPT=${1:-no}
case "$PRMPT" in
-h)
echo "Welcome in the install-all script for makemake templates
Usage:
install-all -h
shows this help
install-all [yes | no | ask]
sets the default beahvior in case that any of the templates are already
installed. The default value is 'no'."
exit 0
;;
yes|no|ask) ;;
*)
echo "Failure: invalid option $PRMPT"
exit 1
;;
esac
if [ ${2:+x} ] ; then
echo "Failure: too many arguments"
exit 1
fi
makemake -p $PRMPT -cf mmt makemake/mmt
makemake -p $PRMPT -cf vscm C/vscm