Debian Codegraph @

vms/create_constants_ads.com

raw
1 $!
2 $! This script produces a sockets-constants.ads file
3 $! for adasockets on OpenVMS platform.
4 $!
5 $! This file is part of adasockets port to OpenVMS
6 $!
7 $!
8 $! Let's write the header
9 $!
10 $ OPEN/WRITE OUT SOCKETS-CONSTANTS.ADS
11 $ WRITE OUT "-- This file has been generated automatically by"
12 $ WRITE OUT "-- CREATE_CONSTANTS_ADS.COM."
13 $ WRITE OUT "--"
14 $ WRITE OUT "-- This file is part of adasockets port to OpenVMS"
15 $ WRITE OUT "--"
16 $ WRITE OUT "package sockets.constants is"
17 $!
18 $! Now Include the contents.
19 $! Make a line copy to get rid of the file attribut
20 $! compatibility between TMP.OUT and SOCKETS-CONSTANTS.ADS
21 $!
22 $ PIPE RUN CONSTANTS.EXE | TYPE/OUT=TMP.OUT SYS$INPUT
23 $ loop_label:
24 $ OPEN IN TMP.OUT
25 $ READ/END_OF_FILE=end_label IN LINE
26 $ WRITE OUT LINE
27 $ GOTO loop_label
28 $ end_label:
29 $ CLOSE IN
30 $ DEL/NOCONF/LOG TMP.OUT;*
31 $!
32 $! Then close the specification file
33 $!
34 $ WRITE OUT "end sockets.constants;"
35 $ CLOSE OUT
36 $ EXIT