~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to install/unix/install2.sh

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
# .COPYRIGHT: Copyright (c) 1988-2011 European Southern Observatory,
 
3
#                                         all rights reserved
 
4
# .TYPE           command
 
5
# .NAME           install1.sh
 
6
# .LANGUAGE       shell script
 
7
# .ENVIRONMENT    Unix Systems. Executable under SHELL and C-SHELL
 
8
# .COMMENTS       Installation procedure of the MIDAS system starting from
 
9
#                 scratch.
 
10
#                 Usage: install system [options]
 
11
#
 
12
# .AUTHOR         K. Banse
 
13
# .VERSION 1.0  
 
14
# 060328        Creation
 
15
# 111116        last modif
 
16
 
 
17
 
 
18
echo=echo
 
19
if [ "`echo -n`" = "-n" ] ; then
 
20
  SV_NONL="\c"
 
21
else
 
22
  echo="echo -n"
 
23
fi
 
24
 
 
25
 
 
26
# link correct ftoc dir to good-ftoc
 
27
# and copy relevant .fc files (+ correct y123.for files)
 
28
 
 
29
rm -rf $MID_HOME/system/good-ftoc
 
30
 
 
31
if [ -f "$MID_HOME/libsrc/ftoc/ftocc" ] ; then
 
32
   ln -s $MID_HOME/system/ftoc $MID_HOME/system/good-ftoc
 
33
   echo "*** Use (default) $MID_HOME/system/ftoc"
 
34
   MYNO=1
 
35
else
 
36
   ln -s $MID_HOME/system/ftoc-new $MID_HOME/system/good-ftoc
 
37
   echo "*** Use (new) $MID_HOME/system/ftoc-new"
 
38
   MYNO=2
 
39
fi
 
40
 
 
41
echo "*** and copy ...-$MYNO files for f2c work"
 
42
 
 
43
 
 
44
cp $MID_HOME/prim/plot/libsrc/yplot-$MYNO.for $MID_HOME/prim/plot/libsrc/yplot.for
 
45
cp $MID_HOME/prim/plot/libsrc/getinp-$MYNO.fc $MID_HOME/prim/plot/libsrc/getinp.fc
 
46
 
 
47
cp $MID_HOME/libsrc/plot/getaxs-$MYNO.fc $MID_HOME/libsrc/plot/getaxs.fc
 
48
cp $MID_HOME/libsrc/plot/pta-$MYNO.fc $MID_HOME/libsrc/plot/pta.fc
 
49
cp $MID_HOME/libsrc/plot/ptb-$MYNO.fc $MID_HOME/libsrc/plot/ptb.fc
 
50
cp $MID_HOME/libsrc/plot/ptg-$MYNO.fc $MID_HOME/libsrc/plot/ptg.fc
 
51
cp $MID_HOME/libsrc/plot/ptk-$MYNO.fc $MID_HOME/libsrc/plot/ptk.fc
 
52
cp $MID_HOME/libsrc/plot/pto-$MYNO.fc $MID_HOME/libsrc/plot/pto.fc
 
53
cp $MID_HOME/libsrc/plot/ypt-$MYNO.for $MID_HOME/libsrc/plot/ypt.for
 
54
 
 
55
cp $MID_HOME/libsrc/agl/yagl-$MYNO.for $MID_HOME/libsrc/agl/yagl.for
 
56
cp $MID_HOME/libsrc/agl/fintf-$MYNO.fc $MID_HOME/libsrc/agl/fintf.fc 
 
57
 
 
58
cp $MID_HOME/libsrc/idi/cidi/iic-$MYNO.fc $MID_HOME/libsrc/idi/cidi/iic.fc 
 
59
cp $MID_HOME/libsrc/idi/cidi/iid-$MYNO.fc $MID_HOME/libsrc/idi/cidi/iid.fc 
 
60
cp $MID_HOME/libsrc/idi/cidi/iig-$MYNO.fc $MID_HOME/libsrc/idi/cidi/iig.fc 
 
61
cp $MID_HOME/libsrc/idi/cidi/iii-$MYNO.fc $MID_HOME/libsrc/idi/cidi/iii.fc 
 
62
cp $MID_HOME/libsrc/idi/cidi/iil-$MYNO.fc $MID_HOME/libsrc/idi/cidi/iil.fc 
 
63
cp $MID_HOME/libsrc/idi/cidi/iim-$MYNO.fc $MID_HOME/libsrc/idi/cidi/iim.fc 
 
64
cp $MID_HOME/libsrc/idi/cidi/iir-$MYNO.fc $MID_HOME/libsrc/idi/cidi/iir.fc 
 
65
cp $MID_HOME/libsrc/idi/cidi/yiic-$MYNO.for $MID_HOME/libsrc/idi/cidi/yiic.for 
 
66
cp $MID_HOME/libsrc/idi/cidi/yiid-$MYNO.for $MID_HOME/libsrc/idi/cidi/yiid.for 
 
67
cp $MID_HOME/libsrc/idi/cidi/yiig-$MYNO.for $MID_HOME/libsrc/idi/cidi/yiig.for 
 
68
cp $MID_HOME/libsrc/idi/cidi/yiii-$MYNO.for $MID_HOME/libsrc/idi/cidi/yiii.for 
 
69
cp $MID_HOME/libsrc/idi/cidi/yiim-$MYNO.for $MID_HOME/libsrc/idi/cidi/yiim.for 
 
70
cp $MID_HOME/libsrc/idi/cidi/yiir-$MYNO.for $MID_HOME/libsrc/idi/cidi/yiir.for 
 
71
 
 
72
 
 
73
cp $MID_HOME/prim/display/libsrc/f2cdsp-$MYNO.fc $MID_HOME/prim/display/libsrc/f2cdsp.fc 
 
74
cp $MID_HOME/prim/display/libsrc/yf2cdsp-$MYNO.for $MID_HOME/prim/display/libsrc/yf2cdsp.for 
 
75
 
 
76
cp $MID_HOME/prim/general/libsrc/f2cgen-$MYNO.fc $MID_HOME/prim/general/libsrc/f2cgen.fc 
 
77
cp $MID_HOME/prim/general/libsrc/f2cgena-$MYNO.fc $MID_HOME/prim/general/libsrc/f2cgena.fc 
 
78
cp $MID_HOME/prim/general/libsrc/extrco-$MYNO.fc $MID_HOME/prim/general/libsrc/extrco.fc 
 
79
cp $MID_HOME/prim/general/libsrc/clefra-$MYNO.fc $MID_HOME/prim/general/libsrc/clefra.fc 
 
80
cp $MID_HOME/prim/general/libsrc/vecsubs-$MYNO.fc $MID_HOME/prim/general/libsrc/vecsubs.fc 
 
81
cp $MID_HOME/prim/general/libsrc/stvals-$MYNO.fc $MID_HOME/prim/general/libsrc/stvals.fc 
 
82
cp $MID_HOME/prim/general/libsrc/zmstat-$MYNO.fc $MID_HOME/prim/general/libsrc/zmstat.fc 
 
83
cp $MID_HOME/prim/general/libsrc/yf2cgen-$MYNO.for $MID_HOME/prim/general/libsrc/yf2cgen.for 
 
84
cp $MID_HOME/prim/general/libsrc/yextrco-$MYNO.for $MID_HOME/prim/general/libsrc/yextrco.for 
 
85
cp $MID_HOME/prim/general/libsrc/yvecsubs-$MYNO.for $MID_HOME/prim/general/libsrc/yvecsubs.for 
 
86
cp $MID_HOME/prim/general/libsrc/ystvals-$MYNO.for $MID_HOME/prim/general/libsrc/ystvals.for 
 
87
 
 
88
cp $MID_HOME/contrib/iue/libsrc/istiue-$MYNO.fc  $MID_HOME/contrib/iue/libsrc/istiue.fc 
 
89
 
 
90
exit 0