-
Notifications
You must be signed in to change notification settings - Fork 1
/
Install
47 lines (39 loc) · 1.13 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/csh
echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * *"
echo "* Installing dowser program"
echo "* Enter a machine type from among the following choices:"
echo -n "* "
foreach i ( CODE/Makearch.* )
echo -n " $i:e "
end
echo " "
echo -n "* -->"
set MACHINE = $<
/bin/rm -f dowserinit
echo "setenv DOWSER `pwd`" > dowserinit
echo "setenv DOW_MACH $MACHINE" >> dowserinit
echo 'set path = ( $path $DOWSER/bin $DOWSER/bin/$DOW_MACH )' >> dowserinit
echo "*"
echo "* The Install script has created a file called dowserinit"
echo "* The contents of this file are:"
echo "* ---------"
cat dowserinit
echo "* ---------"
endif
echo " "
echo "NOTABENE"
echo "In future use of dowser include this statement in your .cshrc file:"
echo " source dowserinit"
echo "NOTABENE"
echo " "
echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * *"
echo "*"
echo "* Now Install will proceed to make DOWSER"
source dowserinit
cd CODE
if ( $MACHINE == "dec" ) then
echo "* Note that 'gmake' wll be used to make dowser, instead of 'make'"
alias make gmake
endif
make
echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * *"