summaryrefslogtreecommitdiff
path: root/ipl/progs/listhtml.icn
blob: 4362f4f2d7672cc19b48a419576562c91542b424 (plain)
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
26
27
28
29
30
31
32
33
34
############################################################################
#
#	File:     listhtml.icn
#
#	Subject:  Program to create Web page with links to listed files
#
#	Author:   Ralph E. Griswold
#
#	Date:     September 17, 1998
#
############################################################################
#
#  This file is in the public domain.
#
############################################################################
#
#  The files to be included are listed in standard input.  There is no
#  check that the files actually exist.
#
############################################################################

procedure main()
   local file

   write("<HTML><HEAD>")
   write("<TITLE>File Links</TITLE></HEAD>")
   write("<BODY>")

   every file := !&input do
      write("<A HREF=\"", file, "\">", file, "</A><BR>")

   write("</BODY></HTML>")

end