source: trunk/MagicSoft/Simulation/Detector/Camera/camera_install@ 18628

Last change on this file since 18628 was 5109, checked in by moralejo, 20 years ago
Fixed typo
  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/sh
2#
3#
4# linking the libranlib.a
5# +++++++++++++++++++++++
6#
7cd ../lib
8
9# first check if the file libranlib.a is existing
10if [ -f libranlib.a ] ; then
11 echo " libranlib.a already linked"
12else
13 echo "- linking the libranlib "
14
15 SYSTEM=`echo ${OSTYPE} | grep osf | wc | awk '{print $1}'`
16 if [ $SYSTEM = 1 ]; then
17 echo " --> SYSTEM = osf "
18 ln -s libranlib.a.osf1 libranlib.a
19 fi
20
21 SYSTEM=`echo ${OSTYPE} | grep linux | wc | awk '{print $1}'`
22 if [ $SYSTEM = 1 ]; then
23 echo " --> SYSTEM = linux "
24 ln -s libranlib.a.linux libranlib.a
25 fi
26fi
27
28if [ -f libranlib.a ] ; then
29 echo " libranlib.a sucessfully linked"
30else
31 echo " ERROR: no symoblic link for libranlib.a "
32 exit
33fi
34echo ""
35#
36#
37# Linking the qe.dat
38# +++++++++++++++++++++++++++
39#
40cd ../Data
41# first check if qe.dat is already existing
42if [ -f qe.dat ] ; then
43 echo " qe.dat already linked"
44else
45 echo "- linking qe.dat to qe-emi-coat.RFL.dat, which is QE for EMI PMTs"
46 ln -s qe-emi-coat.RFL.dat qe.dat
47fi
48#
49echo ""
50#
51# compilation
52# +++++++++++++++++++++++++++
53#
54
55cd ../../../Mars
56make libmars.so
57cd ../Simulation/Detector/Camera
58make
59cd ../StarResponse
60make
61cd ../Camera
62
63echo ""
64echo " Now change the input card and run camera with "
65echo ""
66echo " camera < input.card "
67echo ""
68echo ""
69#
70
Note: See TracBrowser for help on using the repository browser.