[comp.sources.misc] ALEX part 1/2

allbery@ncoast.UUCP (09/29/87)

[I have rewrapped this into two archives, as it arrived as a monolithic 120K
message.  I have also removed compress from the distribution, as it is avail-
able in its complete form from many UUCP and FTP sites as well as in the
Usenet news distribution itself.  Please note that this is not my normal
function, and that I may respond to such submissions by asking the poster to
resubmit his article differently.  ++bsa]

#--------------------------------CUT HERE-------------------------------------
#! /bin/sh
#
# This is a shell archive.  Save this into a file, edit it
# and delete all lines above this comment.  Then give this
# file to sh by executing the command "sh file".  The files
# will be extracted into the current directory owned by
# you with default permissions.
#
# The files contained herein are:
#
# -rw-rw-rw-   1 allbery  System      1738 Sep 29 16:16 READ_ME
# -rw-r--r--   1 allbery  System       499 Sep 29 16:10 Makefile
# -rwxr-xr-x   1 allbery  System     26067 Sep 29 16:11 alex
# -rw-r--r--   1 allbery  System      8550 Sep 29 16:11 alex.1
#
echo 'x - READ_ME'
if test -f READ_ME; then echo 'shar: not overwriting READ_ME'; else
sed 's/^X//' << '________This_Is_The_END________' > READ_ME
X	ALEX (Automatic Library EXchange) is being released to the public 
Xdomain for the first time.  It is a Unix utility (mostly shell script) which 
Xwe have found very useful here at ARDEC.  It allows for the easy transfer of 
Xfiles or groups of files, either ASCII or binary, between users of personal 
Xcomputers.  It assumes that the user has his PC connected to a Unix host 
Xcomputer, using communications software that supports the Kermit file 
Xtransfer protocol.  It further assumes that the user has some type of 
Xelectronic mail access on the Unix host.  The standard Alex release comes 
Xconfigured for the mmdf (msg) mail system, but is easily adapted for 
Xstandard Unix mail or other mail systems.  
X	Alex was designed for the PC user who knows little about Unix, so
Xthe complete manual, included in the distribution (alex.doc), provides very
Xbasic instructions.  Since Crosstalk and public domain Kermit are the two
Xmost popular PC communications programs used here at ARDEC, detailed 
Xinstructions are provided for those two types of users.
X	Alex was inspired by the public domain Tarmail program, and uses a 
Xformat similar to Tarmail.  However, compatibility with Tarmail was not 
Xmaintained for reasons that are discussed in the manual.  Its format is 
Xpurposely simple and has proven very reliable during the year or so that it 
Xhas been in use at ARDEC.  It also includes some advanced options that allow
XAlex to act as a total replacement for Tarmail.  I encourage anyone who
Xadministers a Unix system frequented by PC users to try out Alex.
X
X		    --Ken Van Camp <kvancamp@ARDEC.ARPA>
X	U.S. Army Armament Research Development & Engineering Center
X		        SMCAR-FSA-E  Building 329
X		    Picatinny Arsenal, NJ  07806-5000
________This_Is_The_END________
if test `wc -l < READ_ME` -ne 27; then
	echo 'shar: READ_ME was damaged during transit (should have been 27 bytes)'
fi
fi		; : end of overwriting check
echo 'x - Makefile'
if test -f Makefile; then echo 'shar: not overwriting Makefile'; else
sed 's/^X//' << '________This_Is_The_END________' > Makefile
XINSDIR =	/usr/pica/bin
XMANDIR =	/usr/man
XPROGRAMS=	undigest compress atob btoa 
X
X
Xall: undigest compress btoa atob
X
Xundigest:	undigest.o
X	$(CC) $(LDFLAGS) -o undigest undigest.o
X
Xcompress:	compress.o
X	$(CC) $(LDFLAGS) -o compress compress.o
X	ln compress uncompress
X
Xbtoa:	btoa.o
X	$(CC) $(LDFLAGS) -o btoa btoa.o
X	
Xatob:	atob.o
X	$(CC) $(LDFLAGS) -o atob atob.o
X
Xinstall: 	
X		$(INSDIR)/$(PROGRAMS)
X		ln $(INSDIR)/compress $(INSDIR)/uncompress
X		rm uncompress
X
Xclean:
X	rm -f *.o $(PROGRAMS) uncompress
________This_Is_The_END________
if test `wc -l < Makefile` -ne 27; then
	echo 'shar: Makefile was damaged during transit (should have been 27 bytes)'
fi
fi		; : end of overwriting check
echo 'x - alex'
if test -f alex; then echo 'shar: not overwriting alex'; else
sed 's/^X//' << '________This_Is_The_END________' > alex
X#!/bin/sh
X#
X#                               ALEX version 1.22
X#
X# ALEX: Automatic Library EXchange program for sending and receiving groups
X#	of files (either binary or ascii) via electronic mail. 
X#
Xusage="\
Xusage: alex [options]\n\
XAll argu