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

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
#!/bin/sh
# @(#)fitcref.sh	19.1 (ESO-IPG) 02/25/03 13:20:10
# Shell procedure fitcref.sh 
# called from fitcref.prg as $fitcref.sh
# Michele Peron    900215
# Carlos Guirao	   921224
# Carlos Guirao	   000609

rm -f libfituser.a fitcrea.o fitimag.o funcrea.o makefile.fit
cp $MID_LIB/libfituser.a .
cp $MID_FIT/fitcrea.mod fitcrea.o           
cp $MID_FIT/fitimag.mod fitimag.o
cp $MID_FIT/funcrea.mod funcrea.o
cp $MID_FIT/makefile.fit makefile.fit

IFS="$IFS,"
set - $1
while [ $# -gt 0 ]
do
  OBJ="$OBJ $1.o"
  shift
done
rm -f $OBJ

make -i -f makefile.fit OBJ="$OBJ" OUT="fitcrea.exe fitimag.exe funcrea.exe"