source: trunk/MagicSoft/Simulation/Detector/ReflectorII/refl-install@ 1679

Last change on this file since 1679 was 1618, checked in by bigongia, 22 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/sh
2#
3#
4
5#
6# linking the libranlib.a
7# +++++++++++++++++++++++
8#
9
10cd ../lib
11
12# first check if the file libranlib.a is existing
13if [ -f libranlib.a ] ; then
14 echo " libranlib.a already linked"
15else
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
29fi
30
31if [ -f libranlib.a ] ; then
32 echo " libranlib.a sucessfully linked"
33else
34 echo " ERROR: no symbolic link for libranlib.a "
35 exit
36fi
37
38echo ""
39echo ""
40#
41# linking the reflectivity.dat
42# ++++++++++++++++++++++++++++
43#
44cd ../Data
45
46# first check if the file is existing
47if [ -f reflectivity.dat ] ; then
48 echo " reflectivity.dat already linked"
49else
50 echo " linking the reflectivity.dat "
51
52 ln -s reflectivity-90.dat reflectivity.dat
53fi
54if [ -f reflectivity.dat ] ; then
55 echo " reflectivity.dat sucessfully linked"
56else
57 echo " ERROR: no symoblic link for reflectivity.dat"
58 exit
59fi
60
61echo ""
62echo ""
63
64
65#
66# instruction for compilation
67# +++++++++++++++++++++++++++
68#
69
70
71echo " to compile the reflector use the following commands"
72echo ""
73echo " > make depend"
74echo " > make "
75echo ""
76echo " change the ->input<- card and run reflector with "
77echo ""
78echo " > reflector < input "
79echo ""
80echo ""
81
82
83
84
85
86
87
Note: See TracBrowser for help on using the repository browser.