1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | #
|
---|
4 |
|
---|
5 | #
|
---|
6 | # linking the libranlib.a
|
---|
7 | # +++++++++++++++++++++++
|
---|
8 | #
|
---|
9 |
|
---|
10 | cd ../lib
|
---|
11 |
|
---|
12 | # first check if the file libranlib.a is existing
|
---|
13 | if [ -f libranlib.a ] ; then
|
---|
14 | echo " libranlib.a already linked"
|
---|
15 | else
|
---|
16 | echo "- linking the libranlib "
|
---|
17 |
|
---|
18 | SYSTEM=`echo ${OSTYPE} | grep osf | wc | awk '{print $1}'`
|
---|
19 | if [ $SYSTEM = 1 ]; then
|
---|
20 | echo " --> SYSTEM = osf "
|
---|
21 | ln -s libranlib.a.osf1 libranlib.a
|
---|
22 | fi
|
---|
23 |
|
---|
24 | SYSTEM=`echo ${OSTYPE} | grep linux | wc | awk '{print $1}'`
|
---|
25 | if [ $SYSTEM = 1 ]; then
|
---|
26 | echo " --> SYSTEM = linux "
|
---|
27 | ln -s libranlib.a.linux libranlib.a
|
---|
28 | fi
|
---|
29 | fi
|
---|
30 |
|
---|
31 | if [ -f libranlib.a ] ; then
|
---|
32 | echo " libranlib.a sucessfully linked"
|
---|
33 | else
|
---|
34 | echo " ERROR: no symbolic link for libranlib.a "
|
---|
35 | exit
|
---|
36 | fi
|
---|
37 |
|
---|
38 | echo ""
|
---|
39 | echo ""
|
---|
40 | #
|
---|
41 | # linking the reflectivity.dat
|
---|
42 | # ++++++++++++++++++++++++++++
|
---|
43 | #
|
---|
44 | cd ../Data
|
---|
45 |
|
---|
46 | # first check if the file is existing
|
---|
47 | if [ -f reflectivity.dat ] ; then
|
---|
48 | echo " reflectivity.dat already linked"
|
---|
49 | else
|
---|
50 | echo " linking the reflectivity.dat "
|
---|
51 |
|
---|
52 | ln -s reflectivity-90.dat reflectivity.dat
|
---|
53 | fi
|
---|
54 | if [ -f reflectivity.dat ] ; then
|
---|
55 | echo " reflectivity.dat sucessfully linked"
|
---|
56 | else
|
---|
57 | echo " ERROR: no symoblic link for reflectivity.dat"
|
---|
58 | exit
|
---|
59 | fi
|
---|
60 |
|
---|
61 | echo ""
|
---|
62 | echo ""
|
---|
63 |
|
---|
64 |
|
---|
65 | #
|
---|
66 | # instruction for compilation
|
---|
67 | # +++++++++++++++++++++++++++
|
---|
68 | #
|
---|
69 |
|
---|
70 |
|
---|
71 | echo " to compile the reflector use the following commands"
|
---|
72 | echo ""
|
---|
73 | echo " > make depend"
|
---|
74 | echo " > make "
|
---|
75 | echo ""
|
---|
76 | echo " change the ->input<- card and run reflector with "
|
---|
77 | echo ""
|
---|
78 | echo " > reflector < input "
|
---|
79 | echo ""
|
---|
80 | echo ""
|
---|
81 |
|
---|
82 |
|
---|
83 |
|
---|
84 |
|
---|
85 |
|
---|
86 |
|
---|
87 |
|
---|