home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume26
/
maint
/
part01
/
README
< prev
next >
Wrap
Text File
|
1992-05-13
|
7KB
|
137 lines
Last update: 01/24/90
INTRODUCTION
Maint is a full-screen file and directory maintenance program. It will
allow you to do all sorts of things to files and directories with just a few
keystrokes. It also makes it easier to scan a bunch of directories and sub-
directories very quickly. It has a number of different startup options for
formatting the information on the screen and the a whole slew of commands
that may be specified.
I know the above paragraph seems a little sketchy but after you start using
Maint, I think that you will find that it can be a very useful tool. We have
been using it for quite a while here and I have gotten a lot of positive feed-
back on it, including many suggestions for improving it.
I also realize that there are things like Open Window's filemgr and
DECwindows user executive for managing files and directories. They are
both nice but I personally find maint to be much faster and easier to use
when I'm dealing with *lots* of files and directories. I'm sure that some
people won't agree with this but hey it's a free country, right? :-)
DISTRIBUTION
The source code is included so feel free to redistribute it. I don't
mind as long as the copyright notice (COPYRIGHT) stays with it and you don't
claim you wrote it or try to make money from it.
REQUIREMENTS
About the only thing that is really needed to build and run maint is a
good version of curses. System V comes with them by default. ULTRIX docu-
mentation calls theirs X/Open curses and you have to link with a different
curses library. I've also heard them called the Terminfo curses. Basically,
if your curses library has the keypad() routine, you have a pretty good chance
of making maint work. Maint depends on it and won't build without it. Systems
that I *know* maint will build and run on are:
o ULTRIX (3.0 or higher; 2.X doesn't have keypad)
o SunOS 3.X, 4.X - you must have the System V software installed
because needs the some header files and libraries that contain
the necessary curses stuff. You can use gcc to compile as long
as you specify the right include directory and link with the
necessary SysV libraries. Check the Makefile for details.
If you're building on a 3.X system, you need to define -DSUNOS3;
it's in the Makefile.
o System V Release 3
I would like to say that maint will work on HP/UX, AIX, etc., but I
can't because I don't have access to them. If you make it work on a system
not listed above, let me know what you had to do and I'll see what I can do
about including your fixes in the next release.
I'm also pretty anxious to get it ported to Xenix. If anyone out there
wants to take the time to port it and send me the diffs, I'll be more than
happy to include them.
INSTALLATION
1. Copy Makefile.dist to Makefile and copy maint.h.dist to maint.h.
2. Look at maint.h and change the #defines for MAX_SCREEN_ROWS and
MAX_SCREEN_COLS maximum number of rows/columns for the screens at
your site. The default values are for terminals that are 24x80. If
you use workstations with big windows, adjust them accordingly. For
example, on a Sun 3/60 with a fullscreen window, 60 for MAX_SCREEN_ROWS
and 140 for MAX_SCREEN_COLS is nice. Making them larger than what
you need won't cause any problems but might make the executable a
little bigger.
Other things that you might want to change in maint.h:
- DEFAULT_PAGER - the default is more; make it whatever you want
- DEFAULT_EDITOR - default is vi
- DEFAULT_SHELL - default is csh
3. Look at Makefile and pick what CC, LIBS, and CFLAGS should be used for
your site. Also, set the BINDIR, BINMODE, etc., if you want to use
the Makefile to install maint for you. Make sure to add -DSUNOS3
to the CFLAGS definition if you're building on a Sun and you are
running SunOS 3.X; this turns on a few typedefs that maint needs.
4. Type "make" to build maint.
5. Type "make install" if you feel like it.
6. That's it.....
If you have problems building/installing maint, feel free to call me or send
me some e-mail and let me know how I blew it. I'll do what I can to make sure
that maint can be installed at your site.
HACKING ON THE CODE
Since the source is distributed, feel free to hack on the code. There is
nothing that is real complicated in maint; the code itself is pretty straight-
forward (at least I think so! :^). You might want to look at the comments at
the top of main.c to get an idea about some of the data structures.
If you find a bug, you can either 1) fix it yourself, contact me, and
send me the fix, or 2) let me know about it and I'll see what I can do. I'll
be sending out patches when appropriate.
THANKS
To Dory Leifer and Mark Knopper @ Merit for letting me borrow a System V
machine for testing and to Dan Bidwell @ Andrews University for doing the
final System V testing. Also to Steve Simmons at ITI for his suggestions and
code improvements.
CONCLUSION
I put a lot of work into maint and I would appreciate any comments/
suggestions/flames that you might have. If you get maint up and running, I
would appreciate it if you would either send me e-mail or phone me, letting
me know that you installed maint and what your thoughts are about it.
Also, if you port maint to a machine that wasn't listed above and you'd
like the changes encorporated in the next release, send me e-mail describing
what you did. *DON'T* just send me the diffs. First describe what you had
to do and THEN send me the diffs. I get a lot of mail and it is very easy
for me delete the diffs by accident but if I know they're coming, I'll be
especially careful.
There are a lot of things that I have planned but I haven't implemented
them yet because I felt like maint was suffering from what someone once called
"creeping featurism." Thus, if I waited until I had every possible option
and nicety installed it would be quite a while before I could unleash this
on the world. I feel that in it's current state that it can be quite helpful.
If you have a suggestion feel free to send me e-mail.
While I'm sure maint doesn't do everything that everyone could ever want,
I still feel that you will find it useful. At any rate, I use it quite a
bit, even if no one else does. :-)
--
Leonard J. Peirce Internet: peirce@mickey.acs.wmich.edu
Western Michigan University peirce@gw.wmich.edu
Academic Computing Services
Kalamazoo, MI 49008 Voice: (616) 387-5469