home *** CD-ROM | disk | FTP | other *** search
- BOOT.DOC by Richard Conn
-
- The following documentation illustrates the steps taken to
- bootstrap in several key programs which enable the Ada Software Repository
- online documentation system to be used from any computer which supports
- a validated Ada compiler. This documentation is divided into sections,
- where each section contains comment text (which follows the keyword COMMENT:)
- and a sample session (which follows the centered keyword SESSION).
- This session is done on a 4.2 BSD UNIX system using the Verdix Ada
- Compiler. All file names and commands are lower-case (but they are printed
- in upper-case in the COMMENT section). This session has been edited
- to remove extraneous detail and to change directory names.
-
- ----------------------------------------------------------------------------
- COMMENT:
- Once logged into the DDN host computer (running 4.2 BSD UNIX), I
- transferred the following files from SIMTEL20:
- PD:<ADA.PAGER> UNPAGE.ADA
- PD:<ADA.PAGER> PAGER.SRC
- PD:<ADA.ONLINE-DOC> HELP.SRC
- PD:<ADA.ONLINE-DOC> HELP.DAT
-
- The UNPAGE program (file UNPAGE.ADA) is easy to compile (only one
- program containing the mainline procedure UNPAGE), and it is used to
- extract the component files from PAGER.SRC.
- PAGER (file PAGER.SRC) is a useful tool which can be employed to
- extract component files from SRC files in the repository and to build
- and analyze SRC files.
- Finally, once PAGER was compiled and operational, I used it to
- extract the component files from HELP.SRC. These were then compiled
- to create the programs AHELP_BUILD (which converts the text file HELP.DAT
- into a direct access file which can be used by the other tools), AHELP_ANALYZE
- (which presents a tree structure of the contents of a direct access file
- created from HELP.DAT), and AHELP (which displays the direct access file
- created from HELP.DAT in a convenient fashion).
-
- SESSION
-
- 8% ftp simtel20
- Connected to simtel20.arpa.
- 220 SIMTEL20.ARPA FTP Server Process 5Z(46)-7 at Fri 11-Apr-86 08:14-MST
- Name: anonymous
- Password:
- 331 ANONYMOUS user ok, send real ident as password.
- 230 User ANONYMOUS logged in at Fri 11-Apr-86 08:14-MST, job 8.
- ftp> cd pd:<ada.pager>
- 331 Default name accepted. Send password to connect to it.
- ftp> get unpage.ada
- 200 Port 5.147 at host 26.5.0.47 accepted.
- 150 ASCII retrieve of PD:<ADA.PAGER>UNPAGE.ADA.1 started.
- 226 Transfer completed. 5618 (8) bytes transferred.
- 5618 bytes received in 5.34 seconds (1 Kbytes/s)
- ftp> get pager.src
- 200 Port 5.148 at host 26.5.0.47 accepted.
- 150 ASCII retrieve of PD:<ADA.PAGER>PAGER.SRC.5 started.
- 226 Transfer completed. 86752 (8) bytes transferred.
- 86752 bytes received in 105.31 seconds (0.8 Kbytes/s)
- ftp> cd pd:<ada.online-doc>
- 331 Default name accepted. Send password to connect to it.
- ftp> get help.src
- 200 Port 5.149 at host 26.5.0.47 accepted.
- 150 ASCII retrieve of PD:<ADA.ONLINE-DOC>HELP.SRC.2 started.
- 226 Transfer completed. 63360 (8) bytes transferred.
- 63360 bytes received in 28.66 seconds (2.2 Kbytes/s)
- ftp> get help.dat
- 200 Port 5.150 at host 26.5.0.47 accepted.
- 150 ASCII retrieve of PD:<ADA.ONLINE-DOC>HELP.DAT.1 started.
- 226 Transfer completed. 122782 (8) bytes transferred.
- 122782 bytes received in 73.68 seconds (1.6 Kbytes/s)
- ftp> quit
- 221 QUIT command received. Goodbye.
-
- ----------------------------------------------------------------------------
- COMMENT:
- The following files are now on the local host computer.
-
- Size File
- ------ ------------
- 119110 Apr 11 10:20 help.dat
- 61100 Apr 11 10:19 help.src
- 83516 Apr 11 10:17 pager.src
- 5447 Apr 11 10:15 unpage.ada
-
- ----------------------------------------------------------------------------
- COMMENT:
- First, I rename UNPAGE.ADA to UNPAGE.A (the Verdix Ada compiler
- expects Ada source files to have a .a suffix). I then compile UNPAGE.A
- to create UNPAGE. UNPAGE is then used to extract the components from
- PAGER.SRC (issue the command UNPAGE and type in PAGER.SRC to the prompt
- -- all inputs are in lower case). After this was done, the directory display
- looked like this:
-
- SESSION
-
- %2 ls
- GVAS_table help.src pager.src
- ada.lib pager.a pager_compile.dis
- cas3.a pager.dis pager_documentation.dis
- character_set.a pager.doc pager_support.a
- gnrx.lib pager.pro unpage*
- help.dat pager.rno unpage.a
-
- ----------------------------------------------------------------------------
- COMMENT:
- Now, the components of PAGER.SRC have to be compiled in the correct
- order to create the PAGER program. Note the warnings ... I did not see
- these under DEC Ada, but they are not fatal and no harm is done. I will
- probably modify PAGER and its component files someday to eliminate these
- warnings. They revolve around the use of procedures with IN OUT parameters,
- where the parameters are not assigned prior to calling the procedures. I used
- this style so that said parameters could be freely used on both sides of
- the assignment statements.
-
- SESSION
-
- 3% ada character_set.a
- Queued, waiting to run....running
- 4% ada cas3.a
- Queued, waiting to run....running
- /enfac/eng/ada/work2/cas3.a, line 134, char 14:warning:
- RM 3.2.1(18): variable may not yet have a value
- 5% ada pager_support.a
- Queued, waiting to run....running
- /enfac/eng/ada/work2/pager_support.a, line 649, char 46:warning:
- RM 3.2.1(18): variable may not yet have a value
- /enfac/eng/ada/work2/pager_support.a, line 649, char 58:warning:
- RM 3.2.1(18): variable may not yet have a value
- /enfac/eng/ada/work2/pager_support.a, line 649, char 65:warning:
- RM 3.2.1(18): variable may not yet have a value
- /enfac/eng/ada/work2/pager_support.a, line 649, char 75:warning:
- RM 3.2.1(18): variable may not yet have a value
- 6% ada -M pager -o pager pager.a
- Queued, waiting to run....running
-
- ----------------------------------------------------------------------------
- COMMENT:
- Finally, we are ready to compile the HELP program and its two
- support programs, HELP_BUILD and HELP_ANALYZE. I used PAGER to extract
- the components, then I renamed them (.ada to .a), edited HELP_SYSDEP (set
- the name of the default direct-access help file to SIMTEL20.HLP in the
- local directory), and compiled. So as not to conflict with the UNIX HELP
- program, I renamed HELP to AHELP, HELP_ANALYZE to AHELP_ANALYZE, and HELP_BUILD
- to AHELP_BUILD.
- Once compiled, AHELP_BUILD is used to convert HELP.DAT into
- a direct-access file (SIMTEL20.HLP). AHELP_ANALYZE and AHELP then execute
- and use SIMTEL20.HLP.
-
- SESSION
-
- 7% ls -l help.*
- -rw-r--r-- 1 119110 Apr 11 11:08 help.dat
- -rw-r--r-- 1 61100 Apr 11 10:55 help.src
- 8% pager
- PAGER, Version 1.6
- Type HELP for Help
- PAGER> help
- PAGER Commands:
- CHECK filename -- Ada Check on File
- LIST filename -- List Names of Component Files
- PAGE filename -- Create Paged File
- SCAN filename -- List Files in Paged File
- TOGGLE -- Indicate Flag Settings
- TOGGLE flag -- Toggle Indicated Flag:
- Comment, Include File, or
- Verbose
- UNPAGE filename -- Extract from Paged File
- X (Exit) -- Exit PAGER
- PAGER> u help.src
- help.dis
- 25 Lines
- help_sysdep.ada
- 109 Lines
- help.ada
- 722 Lines
- help_analyze.ada
- 278 Lines
- help_build.ada
- 243 Lines
- help.doc
- 619 Lines
- help.rno
- 243 Lines
- PAGER> x
- 9% mv help_sysdep.ada help_sysdep.a
- 10% mv help.ada help.a
- 11% mv help_analyze.ada help_analyze.a
- 12% mv help_build.ada help_build.a
- 13% ed help_sysdep.a
- 3395
- /SIMTEL/
- HELP_FILE_NAME : constant STRING := "DBA4:[CONTR13.EXE]SIMTEL20.HLP";
- s/DBA4:\[CONTR13.EXE\]SIMTEL20.HLP/simtel20.hlp/p
- HELP_FILE_NAME : constant STRING := "simtel20.hlp";
- w
- 3377
- q
- 15% ada help_sysdep.a
- Queued, waiting to run....running
- 16% ada -M help -o ahelp help.a
- Queued, waiting to run....running
- 24% ada -M help_build -o ahelp_build help_build.a
- Queued, waiting to run....running
- 25% ada -M help_analyze -o ahelp_analyze help_analyze.a
- Queued, waiting to run....running
- 27% ahelp_build
- HELP File Builder, Version 1.1
- Source Text File > help.dat
- Help File to Build (RETURN for Default)>
- Number of Screens Written: 253
- Number of Headers Written: 148
- 28% ahelp
- HELP, Version 1.3
- Help File (RETURN for Default)>
-
- << details of execution omitted >>
-
-