Official patch #10 for mp v2.4; please apply it.
Rich Burridge
richb at sunaus.oz
Thu Sep 20 12:03:22 AEST 1990
This is official patch #10 for mp v2.4.
CONTENTS:
1. What is mp?
2/ Changes made in this patch.
3/ How to install this patch. **IMPORTANT NOTE** Please read this carefully.
4/ How to get previous patches.
----------------
1/ What is mp?
Mp is a Postscript pretty printer for mail,news and ordinary files.
Mp v2.4 was posted to comp.sources.misc about three weeks ago at patchlevel #5.
----------------
2/ Changes made in this patch.
* Four files should have their names changed before applying this patch.
These are:
mp.pro.filofax.ps ==> mp.pro.ff.ps
mp.pro.timeman.ps ==> mp.pro.tm.ps
mp.pro.timesys.ps ==> mp.pro.ts.ps
mp.1 ==> mp.man
This is to make filenames < 14 chars, which is needed on SysV systems,
and also to prevent any possible problems with trademarked names.
If you are on a Unix machine, then you should first run the following
four commands:
mv mp.pro.filofax.ps mp.pro.ff.ps
mv mp.pro.timeman.ps mp.pro.tm.ps
mv mp.pro.timesys.ps mp.pro.ts.ps
mv mp.1 mp.man
If you are running mp on another O/S, then you should do the equivalent
of these four moves.
* From Jim Sanchez <syteke!jim at relay.EU.net>
Please reduce the file name length on the mp.pro.filofax and
mp.pro.timeman files for us system V guys. We are stuck with short file
names and have to edit the source files each time you issue a patch.
[Fixed by renaming the files as above - Rich].
* From Bruno Pillard <bp at chorus.fr>
The opportunity to change the location of the LIBDIR is given in the
Makefile, so you should update the Makefile to update the man page
accordingly; For example in the Makefile:
man:; sed -e s,LIBDIR,$$LIBDIR,g mp.man > mp.1
Of course, you have to change the name of mp.1 to mp.man in the
distribution and all occurrence of /usr/local/lib by LIBDIR.
* From Johan Vromans <jv at mh.nl>
From Ian Young <YoungIM at cs.bham.ac.uk>
When compiled with gcc, mp -a falls over with a seg fault.
In print.c, there are two places where a string is being copied to
message_for, which is an inappropriate character pointer.
* From Andreas Wettengel <nixhhs!andreas at relay.EU.net>
the option string to get_opt() in get_options() in print.c has been
changed to allow "-t m" and "-t s" as well as '-tm" and "-ts".
* From Bruno Pillard <bp at chorus.fr>
Added into the README file, the instructions for A4 sites that they
have also to change the "%%PageLength" line in mp.pro.ps. In my
opinion, 72 seems to be a good value.
----------------
3/ How to install this patch. **IMPORTANT NOTE** Please read this carefully.
The most important thing to note with this patch is that four of the mp files
have to have their names changed. These are:
mp.pro.filofax.ps ==> mp.pro.ff.ps
mp.pro.timeman.ps ==> mp.pro.tm.ps
mp.pro.timesys.ps ==> mp.pro.ts.ps
mp.1 ==> mp.man
This is to make filenames < 14 chars, which is needed on SysV systems, and
also to prevent any possible problems with trademarked names.
If you are on a Unix machine, then you should first run the following four
commands:
mv mp.pro.filofax.ps mp.pro.ff.ps
mv mp.pro.timeman.ps mp.pro.tm.ps
mv mp.pro.timesys.ps mp.pro.ts.ps
mv mp.1 mp.man
If you are running mp on another O/S, then you should do the equivalent of
these four moves.
Then apply the patch with Larry Wall's patch program. Copy Makefile.dist to
Makefile and adjust for your site. Then do a "make". Check the paper size
in each of the prologue files that you use is correct for your site (US
Letter or A4), then do a "make install". You might wish to reread the
installation section in the README file to make sure you've adjusted
everything in the Makefile that you need to.
You will probably want to remove the mp.pro.filofax.ps, mp.pro.timeman.ps and
mp.pro.timesys.ps files from the directory where they were previously
installed.
----------------
4/ How to get previous patches.
If you need to get patches 6-9, then they can be obtained from the automatic
mail archive server, by sending a message to rb-archive-server at Aus.Sun.COM
containing the line:
send mp patchn
where n is the patch number you require.
If this is all getting too confusing for you, then the latest complete mp
distribution can be obtained from the same address, by sending a message
containing the lines:
send mp part1
send mp part2
If the mail is likely to go back through any sites that impose a size limit,
then I suggest you divide the above request up into two separate mail
messages.
You can also include a path line in these requests to indicate the mail
path that the archive server should use to send the files to you. Such a
path line could be:
path uunet.uu.net!hostname!user
Note that this is uunet.uu.net and not just uunet. Sun.COM doesn't recognise
just uunet.
[NOTE: When unpacking the shars generated by the automatic mail service,
it is possible you will get error messages for incorrect length.
Please ignore; hopefully the files should still unpack correctly.
I'm currently looking into this problem].
Rich Burridge, DOMAIN: richb at Aus.Sun.COM
Sun Microsystems. ACSNET: richb at sunaus.sun.oz
PHONE: +61 2 413 2666 UUCP: {uunet,mcvax,ukc}!munnari!sunaus.oz!richb
------CUT HERE------patch.10------CUT HERE------
------- README -------
*** /tmp/da02737 Thu Sep 20 11:55:10 1990
--- README Thu Sep 20 11:47:34 1990
***************
*** 64,69 ****
--- 64,74 ----
size is defaulted to US Letter size, so this will work successfully on A4
sized paper but not use all of the paper.
+ It is also possible to change the number of lines printed per page, by
+ adjusting the %%PageLength value in the initial portion of each of the
+ PostScript prologue files. For example, with the default prologue file
+ mp.pro.ps, A4 size paper users might find a page length of 72 more useful.
+
Before you install the mp files in the appropriate places, you should
consider whether you want the installation to install the newsp, filep ...
shell scripts. If this is not the case, then you will need to comment out
***************
*** 154,161 ****
Vromans, Brachet, Pierre Mareschal, Roger Riggs, Larry Tsui, Mike Bundschuh,
Amos Shapir, Bruce G Barnett, Pauline van Winsen, James F. Blake, Bruno
Pillard, Rainer Klute, Ran Ever-Hadani, Lupe Christoph, John Little, Bill
! Houle, Paul Eggert, Larry W. Virden and Peter Collinson for bug reports
! and/or bug fixes plus enhancements.
My thanks also goes to Glenn Reid from Adobe Systems for the backspacefont.ps
code used in the prologue files. I'm grateful to all these people, plus
--- 159,166 ----
Vromans, Brachet, Pierre Mareschal, Roger Riggs, Larry Tsui, Mike Bundschuh,
Amos Shapir, Bruce G Barnett, Pauline van Winsen, James F. Blake, Bruno
Pillard, Rainer Klute, Ran Ever-Hadani, Lupe Christoph, John Little, Bill
! Houle, Paul Eggert, Larry W. Virden, Peter Collinson, Jim Sanchez, Ian
! Young and Andreas Wettengel for bug reports and/or bug fixes plus enhancements.
My thanks also goes to Glenn Reid from Adobe Systems for the backspacefont.ps
code used in the prologue files. I'm grateful to all these people, plus
------- misc.c -------
*** /tmp/da02740 Thu Sep 20 11:55:11 1990
--- misc.c Thu Sep 20 11:06:13 1990
***************
*** 101,107 ****
{
int opch ;
! while ((opch = get_opt(argc, argv, "adfFlmop:s:tv")) != -1)
switch (opch)
{
case 'a' : article = TRUE ; /* "Article from" format. */
--- 101,107 ----
{
int opch ;
! while ((opch = get_opt(argc, argv, "adfFlmop:s:t:v")) != -1)
switch (opch)
{
case 'a' : article = TRUE ; /* "Article from" format. */
------- print.c -------
*** /tmp/da02743 Thu Sep 20 11:55:12 1990
--- print.c Thu Sep 20 11:02:25 1990
***************
*** 117,125 ****
int i ;
if (article == TRUE)
! STRCPY(message_for, "Article from") ; /* MailFor. */
else if (print_orig == TRUE)
! STRCPY(message_for, "From") ;
psdef("MailFor", message_for) ;
if (article == TRUE && newsgroups != NULL) /* User. */
--- 117,125 ----
int i ;
if (article == TRUE)
! message_for = "Article from" ; /* MailFor. */
else if (print_orig == TRUE)
! message_for = "From" ;
psdef("MailFor", message_for) ;
if (article == TRUE && newsgroups != NULL) /* User. */
------- CHANGES -------
*** /tmp/da02746 Thu Sep 20 11:55:12 1990
--- CHANGES Thu Sep 20 11:41:19 1990
***************
*** 196,202 ****
subject line.
* From Bruno Pillard <bp at chorus.fr>
! Added the printing of the username below the date when printing
news articles.
Fixed two typos in the mailp shell script, and added the installation
--- 196,202 ----
subject line.
* From Bruno Pillard <bp at chorus.fr>
! Added the printing of the username beside the date when printing
news articles.
Fixed two typos in the mailp shell script, and added the installation
***************
*** 311,313 ****
--- 311,368 ----
The -F flag has been added for this option. The manual page has also
been updated.
+
+ v2.4 - patchlevel 10. - 20th September 1990.
+
+ * Four files should have their names changed before applying this patch.
+ These are:
+
+ mp.pro.filofax.ps ==> mp.pro.ff.ps
+ mp.pro.timeman.ps ==> mp.pro.tm.ps
+ mp.pro.timesys.ps ==> mp.pro.ts.ps
+ mp.1 ==> mp.man
+
+ This is to make filenames < 14 chars, which is needed on SysV systems,
+ and also to prevent any possible problems with trademarked names.
+
+ If you are on a Unix machine, then you should first run the following
+ four commands:
+
+ mv mp.pro.filofax.ps mp.pro.ff.ps
+ mv mp.pro.timeman.ps mp.pro.tm.ps
+ mv mp.pro.timesys.ps mp.pro.ts.ps
+ mv mp.1 mp.man
+
+ If you are running mp on another O/S, then you should do the equivalent
+ of these four moves.
+
+ * From Jim Sanchez <syteke!jim at relay.EU.net>
+ Please reduce the file name length on the mp.pro.filofax and
+ mp.pro.timeman files for us system V guys. We are stuck with short file
+ names and have to edit the source files each time you issue a patch.
+ [Fixed by renaming the files as above - Rich].
+
+ * From Bruno Pillard <bp at chorus.fr>
+ The opportunity to change the location of the LIBDIR is given in the
+ Makefile, so you should update the Makefile to update the man page
+ accordingly; For example in the Makefile:
+
+ man:; sed -e s,LIBDIR,$$LIBDIR,g mp.man > mp.1
+
+ Of course, you have to change the name of mp.1 to mp.man in the
+ distribution and all occurrence of /usr/local/lib by LIBDIR.
+
+ * From Johan Vromans <jv at mh.nl>
+ From Ian Young <YoungIM at cs.bham.ac.uk>
+ When compiled with gcc, mp -a falls over with a seg fault.
+ In print.c, there are two places where a string is being copied to
+ message_for, which is an inappropriate character pointer.
+
+ * From Andreas Wettengel <nixhhs!andreas at relay.EU.net>
+ the option string to get_opt() in get_options() in print.c has been
+ changed to allow "-t m" and "-t s" as well as '-tm" and "-ts".
+
+ * From Bruno Pillard <bp at chorus.fr>
+ Added into the README file, the instructions for A4 sites that they
+ have also to change the "%%PageLength" line in mp.pro.ps. In my
+ opinion, 72 seems to be a good value.
------- patchlevel.h -------
*** /tmp/da02749 Thu Sep 20 11:55:13 1990
--- patchlevel.h Thu Sep 20 10:27:46 1990
***************
*** 14,17 ****
* reported to me then an attempt will be made to fix them.
*/
! #define PATCHLEVEL 9
--- 14,17 ----
* reported to me then an attempt will be made to fix them.
*/
! #define PATCHLEVEL 10
------- mp.man -------
*** /tmp/da02752 Thu Sep 20 11:55:14 1990
--- mp.man Thu Sep 20 10:53:01 1990
***************
*** 161,167 ****
If
.I MP_PROLOGUE
is not found, then the default directory is assumed
! .RI ( /usr/local/lib/mp.pro.ps ).
.SH "SUPPLIED PROLOGUE FILES"
Five different prologue files are provided:
.RS
--- 161,167 ----
If
.I MP_PROLOGUE
is not found, then the default directory is assumed
! .RI ( LIBDIR/mp.pro.ps ).
.SH "SUPPLIED PROLOGUE FILES"
Five different prologue files are provided:
.RS
***************
*** 169,185 ****
.I mp.pro.ps
Used by default
.TP
! .I mp.pro.filofax.ps
Used if the
.B \-f
option is in effect
.TP
! .I mp.pro.timeman.ps
Used if the
.B \-tm
option is in effect
.TP
! .I mp.pro.timesys.ps
Used if the
.B \-ts
option is in effect
--- 169,185 ----
.I mp.pro.ps
Used by default
.TP
! .I mp.pro.ff.ps
Used if the
.B \-f
option is in effect
.TP
! .I mp.pro.tm.ps
Used if the
.B \-tm
option is in effect
.TP
! .I mp.pro.ts.ps
Used if the
.B \-ts
option is in effect
***************
*** 201,223 ****
.I /usr/local/bin/mp
executable
.TP
! .I /usr/local/lib/mp.pro.ps
\*(Ps prologue for mail printing
.TP
! .I /usr/local/lib/mp.pro.l.ps
\*(Ps prologue for landscape format
.TP
! .I /usr/local/lib/mp.pro.alt.ps
alternative "default" \*(Ps prologue, inserts page
numbers in the bottom right corner of each page
.TP
! .I /usr/local/lib/mp.pro.filofax.ps
\*(Ps prologue for Filofax format
.TP
! .I /usr/local/lib/mp.pro.timeman.ps
\*(Ps prologue for Time Manager format
.TP
! .I /usr/local/lib/mp.pro.timesys.ps
\*(Ps prologue for Time/System International
format.
.SH "SEE ALSO"
--- 201,223 ----
.I /usr/local/bin/mp
executable
.TP
! .I LIBDIR/mp.pro.ps
\*(Ps prologue for mail printing
.TP
! .I LIBDIR/mp.pro.l.ps
\*(Ps prologue for landscape format
.TP
! .I LIBDIR/mp.pro.alt.ps
alternative "default" \*(Ps prologue, inserts page
numbers in the bottom right corner of each page
.TP
! .I LIBDIR/mp.pro.ff.ps
\*(Ps prologue for Filofax format
.TP
! .I LIBDIR/mp.pro.tm.ps
\*(Ps prologue for Time Manager format
.TP
! .I LIBDIR/mp.pro.ts.ps
\*(Ps prologue for Time/System International
format.
.SH "SEE ALSO"
------- Makefile.dist -------
*** /tmp/da02755 Thu Sep 20 11:55:14 1990
--- Makefile.dist Thu Sep 20 10:56:15 1990
***************
*** 79,93 ****
OBJS = header.o io.o main.o misc.o print.o
HDRS = extern.h mp.h patchlevel.h
! OTHERS = README Makefile.dist mailp mp.1 \
MANIFEST FILES CHANGES TODO \
mp.el mp.pro.ps mp.pro.alt.ps mp.pro.l.ps \
! mp.pro.filofax.ps mp.pro.timeman.ps mp.pro.timesys.ps Data
SFILES1 = $(SRCS) $(HDRS) README MANIFEST FILES CHANGES TODO
! SFILES2 = Makefile.dist mailp mp.1 mp.el Data mp.pro.ps mp.pro.l.ps \
! mp.pro.alt.ps mp.pro.filofax.ps \
! mp.pro.timeman.ps mp.pro.timesys.ps
all: $(BINARIES)
--- 79,92 ----
OBJS = header.o io.o main.o misc.o print.o
HDRS = extern.h mp.h patchlevel.h
! OTHERS = README Makefile.dist mailp mp.man \
MANIFEST FILES CHANGES TODO \
mp.el mp.pro.ps mp.pro.alt.ps mp.pro.l.ps \
! mp.pro.ff.ps mp.pro.tm.ps mp.pro.ts.ps Data
SFILES1 = $(SRCS) $(HDRS) README MANIFEST FILES CHANGES TODO
! SFILES2 = Makefile.dist mailp mp.man mp.el Data mp.pro.ps mp.pro.l.ps \
! mp.pro.alt.ps mp.pro.ff.ps mp.pro.tm.ps mp.pro.ts.ps
all: $(BINARIES)
***************
*** 104,116 ****
@echo "start of the mp.pro.ps file, then reinstall."
@echo
-install -s -m 751 mp $(BINDIR)
-install -c -m 644 mp.1 $(MANDIR)/mp.$(MANSECT)
-install -c -m 644 mp.pro.ps $(LIBDIR)
-install -c -m 644 mp.pro.l.ps $(LIBDIR)
-install -c -m 644 mp.pro.alt.ps $(LIBDIR)
! -install -c -m 644 mp.pro.filofax.ps $(LIBDIR)
! -install -c -m 644 mp.pro.timeman.ps $(LIBDIR)
! -install -c -m 644 mp.pro.timesys.ps $(LIBDIR)
-install -c -m 755 mailp $(BINDIR)
#
# NOTE: If you don't want the newsp, filep ... shell scripts installed,
--- 103,116 ----
@echo "start of the mp.pro.ps file, then reinstall."
@echo
-install -s -m 751 mp $(BINDIR)
+ -sed -e s,LIBDIR,$(LIBDIR),g mp.man > mp.1
-install -c -m 644 mp.1 $(MANDIR)/mp.$(MANSECT)
-install -c -m 644 mp.pro.ps $(LIBDIR)
-install -c -m 644 mp.pro.l.ps $(LIBDIR)
-install -c -m 644 mp.pro.alt.ps $(LIBDIR)
! -install -c -m 644 mp.pro.ff.ps $(LIBDIR)
! -install -c -m 644 mp.pro.tm.ps $(LIBDIR)
! -install -c -m 644 mp.pro.ts.ps $(LIBDIR)
-install -c -m 755 mailp $(BINDIR)
#
# NOTE: If you don't want the newsp, filep ... shell scripts installed,
***************
*** 124,130 ****
done
@echo
! clean:; rm -rf mp *.o core
create: SCCS
-sccs create $(SRCS) $(OTHERS)
--- 124,130 ----
done
@echo
! clean:; rm -rf mp mp.1 *.o core
create: SCCS
-sccs create $(SRCS) $(OTHERS)
------- TODO -------
*** /tmp/da02758 Thu Sep 20 11:55:15 1990
--- TODO Thu Sep 20 11:36:41 1990
***************
*** 59,86 ****
message, or better yet, if the subjects are different then print a
different subject under each message.
! 9/ From Jim Sanchez <syteke!jim at relay.EU.net>
! Please reduce the file name length on the mp.pro.filofax and
! mp.pro.timeman files for us system V guys. We are stuck with short file
! names and have to edit the source files each time you issue a patch.
! In the next release of mp, I will make the following changes:
!
! mp.pro.filofax.ps ==> mp.pro.ff.ps
! mp.pro.timeman.ps ==> mp.pro.tm.ps
! mp.pro.timesys.ps ==> mp.pro.ts.ps
!
! 10/ From Bruno Pillard <bp at chorus.fr>
! The opportunity to change the location of the LIBDIR is given in the
! Makefile, so you should update the Makefile to update the man page
! accordingly; For example in the Makefile:
!
! man:; sed -e s,LIBDIR,$$LIBDIR,g mp.man > mp.1
!
! Of course, you have to change the name of mp.1 to mp.man in the
! distribution and all occurrence of /usr/local/lib by LIBDIR.
!
! 11/ From Peter Collinson <pc at hillside.co.uk>
With regards to the -F (Mail from .....) option:
A more general solution might be to allow a specification on the command
line - I envisage something like
--- 59,71 ----
message, or better yet, if the subjects are different then print a
different subject under each message.
! 9/ From Andreas Wettengel <nixhhs!andreas at relay.EU.net>
! I would like to be able to specify an offset within a logical page.
! If you print in landscape mode, the text of the second page starts
! at the left edge of the page, which prevents you from cutting the
! paper in halves and putting each half into a folder.
! 10/ From Peter Collinson <pc at hillside.co.uk>
With regards to the -F (Mail from .....) option:
A more general solution might be to allow a specification on the command
line - I envisage something like
------- MANIFEST -------
*** /tmp/da02761 Thu Sep 20 11:55:15 1990
--- MANIFEST Thu Sep 20 10:41:58 1990
***************
*** 14,20 ****
README | 1
Makefile.dist | 2
mailp | 2
! mp.1 | 2
MANIFEST | 1
FILES | 1
CHANGES | 1
--- 14,20 ----
README | 1
Makefile.dist | 2
mailp | 2
! mp.man (was mp.1) | 2
MANIFEST | 1
FILES | 1
CHANGES | 1
***************
*** 23,31 ****
mp.pro.ps | 2
mp.pro.l.ps | 2
mp.pro.alt.ps | 2
! mp.pro.filofax.ps | 2
! mp.pro.timeman.ps | 2
! mp.pro.timesys.ps | 2
Data/Mail | 2
Data/MailFolder | 2
Data/NewsArticle1 | 2
--- 23,31 ----
mp.pro.ps | 2
mp.pro.l.ps | 2
mp.pro.alt.ps | 2
! mp.pro.ff.ps (was mp.pro.filofax.ps) | 2
! mp.pro.tm.ps (was mp.pro.timeman.ps) | 2
! mp.pro.ts.ps (was mp.pro.timesys.ps) | 2
Data/Mail | 2
Data/MailFolder | 2
Data/NewsArticle1 | 2
------- FILES -------
*** /tmp/da02764 Thu Sep 20 11:55:16 1990
--- FILES Thu Sep 20 10:44:14 1990
***************
*** 16,22 ****
README - describes what mp is, and how to get started.
Makefile.dist - Master Makefile used to build mp on Unix systems.
mailp - a shell script frontend for running mp.
! mp.1 - the mp manual page (troff/nroff -man format).
MANIFEST - tells you what archive part each file was posted in.
FILES - what you're reading now.
CHANGES - change history. Will be updated with each new patch.
--- 16,23 ----
README - describes what mp is, and how to get started.
Makefile.dist - Master Makefile used to build mp on Unix systems.
mailp - a shell script frontend for running mp.
! mp.man - the mp manual page (troff/nroff -man format). Was
! called mp.1.
MANIFEST - tells you what archive part each file was posted in.
FILES - what you're reading now.
CHANGES - change history. Will be updated with each new patch.
***************
*** 26,34 ****
mp.pro.ps - standard mp prologue file.
mp.pro.l.ps - standard mp prologue file for landscape (2 columns).
mp.pro.alt.ps - alternative mp prologue file.
! mp.pro.filofax.ps - mp Filofax prologue file.
! mp.pro.timeman.ps - mp Time Manager prologue file.
! mp.pro.timesys.ps - mp Time/System International prologue file.
Sub-directory Data: test data files for new versions of mp.
-----------------------------------------------------------
--- 27,37 ----
mp.pro.ps - standard mp prologue file.
mp.pro.l.ps - standard mp prologue file for landscape (2 columns).
mp.pro.alt.ps - alternative mp prologue file.
! mp.pro.ff.ps - mp Filofax prologue file. Was called mp.pro.filofax.ps.
! mp.pro.tm.ps - mp Time Manager prologue file. Was called
! mp.pro.timeman.ps.
! mp.pro.ts.ps - mp Time/System International prologue file. Was called
! mp.pro.timesys.ps.
Sub-directory Data: test data files for new versions of mp.
-----------------------------------------------------------
More information about the Comp.sources.bugs
mailing list