Debian Codegraph @

install/unix/make_vms

raw symbols SCIP
1 #! /bin/sh
2 # @(#)make_vms.sh 19.1 (ESO-IPG) 02/25/03 13:51:11
3 # .TYPE command
4 # .NAME make_vms.sh
5 # .LANGUAGE shell script
6 # .ENVIRONMENT Unix Systems. Executable under SHELL and C-SHELL
7 # .COMMENTS
8 # .REMARKS
9 # .AUTHOR Carlos Guirao
10 # .VERSION 1.0 881003 Implementation
11 # .VERSION 1.1 890712 take out graylib.a KB
12 # .VERSION 2.1 901102 New directory structure.
13 # .VERSION 2.2 911003 Removing makefile.com first.
14
15 FILTER=`dirname $0`/switch_filter
16 #FILTER=$MIDASHOME/$MIDVERS/install/vms/switch_filter
17
18 rm -f makefile.com
19
20 # Print header for makefile.com file
21 dir=`pwd | sed -e 's/^.*midas/midas/' -e 's/\//\./g'`
22 dir=`echo [$dir] | tr "[a-z]" "[A-Z]"`
23 echo '$ !++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' \
24 | tee makefile.com
25 echo '$ !' | tee -a makefile.com
26 echo '$ ! .COPYRIGHT (c) 1991 European Southern Observatory' \
27 | tee -a makefile.com
28 echo '$ ! .ENVIRONMENT VMS' | tee -a makefile.com
29 echo '$ ! .AUTHOR Carlos Guirao - [ESO/IPG]' | tee -a makefile.com
30 echo '$ ! .IDENT MAKEFILE.COM' | tee -a makefile.com
31 echo '$ ! .COMMENTS Compile/link procedure in' $dir | tee -a makefile.com
32 echo '$ ! .REMARKS Automatically generated in Unix with make.vms command' \
33 | tee -a makefile.com
34 echo "$ ! .DATE `date`" | tee -a makefile.com
35 echo '$ !' | tee -a makefile.com
36 echo '$ !++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' \
37 | tee -a makefile.com
38 echo '$ !' | tee -a makefile.com
39 echo '$ SET NOON' | tee -a makefile.com
40 echo '$ VERIFY = F$VERIFY(1)' | tee -a makefile.com
41 rm -rf .hidden
42 mkdir .hidden
43 chmod g+w .hidden
44 mv `make -n clean | grep "rm -f" | sed 's/rm -f//'` .hidden >/dev/null 2>&1
45 make SYS_PREFIX=vms OSSYS="" VMSLIB="ip8lib.a" XWLIB="xlink.opt" LD77=ldvms LDCC=ldvms -n | $FILTER | tee -a makefile.com
46 echo '$ IF VERIFY .EQ. 0 THEN SET NOVERIFY' | tee -a makefile.com
47 mv .hidden/* . >/dev/null 2>&1
48 rm -rf .hidden