home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
progs
/
pack.icn
< prev
next >
Wrap
Text File
|
2000-07-29
|
1KB
|
43 lines
############################################################################
#
# File: pack.icn
#
# Subject: Program to package multiple files
#
# Author: Ralph E. Griswold
#
# Date: July 1, 1997
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This programs takes a list of file names on the command line and
# packages the files into a single file, which is written to standard
# output.
#
# Files are separated by a header, ##########, followed by the file
# name. This simple scheme does not work if a file contains such a header
# itself, and it's problematical for files of binary data.
#
############################################################################
#
# See also: unpack.icn
#
############################################################################
procedure main(args)
local in, name
every name := !args do {
close(\in)
in := open(name) | stop("cannot open input file: ",name)
write("##########")
write(name)
while write(read(in))
}
end