newicon.icn: Program to produce new Icon program file

March 26, 2002; Ralph E. Griswold
Requires: system(), vi(1)
This file is in the public domain.
This program creates a new file with a standard Icon program
header and a skeleton mail procedure.

The first command-line argument is taken as the base
name of the file; default "foo".  The second command-line argument is
taken as the author; the default is "Ralph E. Griswold" -- with minor
apologies, I use this program a lot; personalize it for your own
use.  The same comment applies to the skeleton file mentioned below.

The new file is brought up in the vi editor.

The supported options are:

     -f      overwrite and existing file
     -p      produce a procedure file instead of a program
     -o      provide program skeleton with options()

The files skeleton.icn, skelproc.icn, and skelopt.icn must be accessible
via dopen().

Source code | Program Library Page | Icon Home Page