|
Packit Service |
392537 |
%!
|
|
Packit Service |
392537 |
%%BoundingBox: 25 25 290 900
|
|
Packit Service |
392537 |
%%Title: AMANDA Full Page Label
|
|
Packit Service |
392537 |
%%Creator: Amanda reporter
|
|
Packit Service |
392537 |
%%Pages: 1
|
|
Packit Service |
392537 |
%%EndComments
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
%%%%
|
|
Packit Service |
392537 |
%%%% This is a template file used by AMANDA to create 8.5 x 11 inch
|
|
Packit Service |
392537 |
%%%% PostScript dump logs for each dump.
|
|
Packit Service |
392537 |
%%%%
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
% The label is made up of 6 parts: statistics, tape name, date,
|
|
Packit Service |
392537 |
% header, filesystem list, and the logo. Geometrically, the label
|
|
Packit Service |
392537 |
% looks like this:
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
% +----+-------------------+
|
|
Packit Service |
392537 |
% | TAPE_NAME | <- section 'A'
|
|
Packit Service |
392537 |
% | version Location date | <- section 'B'
|
|
Packit Service |
392537 |
% +------------------------+
|
|
Packit Service |
392537 |
% |statistics | message | <- section 'C' | 'F'
|
|
Packit Service |
392537 |
% +----+--+--------+-------+
|
|
Packit Service |
392537 |
% | f# hst fs lvl O-KB C-KB| <- section 'D'
|
|
Packit Service |
392537 |
% +-------+--------+-------+
|
|
Packit Service |
392537 |
% | | | | <- section 'E'
|
|
Packit Service |
392537 |
% | | | |
|
|
Packit Service |
392537 |
% v v v v
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% section 'A' font and position (text centered around this point)
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/TitleFont { /Helvetica-Bold findfont 24 scalefont setfont } def
|
|
Packit Service |
392537 |
/TitlePos { 321 728 } def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% section 'B' font, position of the date (left justified) and the version
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/DateFont { /Palatino-Bold findfont 11 scalefont setfont } def
|
|
Packit Service |
392537 |
/DatePos { 580 715 } def
|
|
Packit Service |
392537 |
/VersFont { /Palatino-Bold findfont 11 scalefont setfont } def
|
|
Packit Service |
392537 |
/VersPos { 43 715 } def
|
|
Packit Service |
392537 |
/LocFont { /Helvetica-Bold findfont 12 scalefont setfont } def
|
|
Packit Service |
392537 |
/LocPos { 321 715 } def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% section 'C' font, start position, and line separation
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/StatFont { /Courier findfont 9 scalefont setfont } def
|
|
Packit Service |
392537 |
/StatPos { 43 695 } def
|
|
Packit Service |
392537 |
/StatSep { 9 } def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% section 'D' font, and field positions (x coord is relative to each column)
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
/HeadingFont { /Palatino-Bold findfont 9 scalefont setfont } def
|
|
Packit Service |
392537 |
/HeadingFilePos { 43 644 } def
|
|
Packit Service |
392537 |
/HeadingHostPos { 73 644 } def
|
|
Packit Service |
392537 |
/HeadingFsPos { 198 644 } def
|
|
Packit Service |
392537 |
/HeadingLvlPos { 333 644 } def
|
|
Packit Service |
392537 |
/HeadingOSizePos1 { 403 652 } def
|
|
Packit Service |
392537 |
/HeadingOSizePos { 403 644 } def
|
|
Packit Service |
392537 |
/HeadingCSizePos1 { 483 652 } def
|
|
Packit Service |
392537 |
/HeadingCSizePos { 483 644 } def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% section 'E' font, and line separation
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/HostFont { /Courier findfont 9 scalefont setfont } def
|
|
Packit Service |
392537 |
/HostSep { 10 } def
|
|
Packit Service |
392537 |
/HostBasePos { 38 630 } def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% section 'F' font, and line separation
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/MessFont { /Courier findfont 9 scalefont setfont } def
|
|
Packit Service |
392537 |
/MessPos { 215 702 } def
|
|
Packit Service |
392537 |
/MessSep { 9 } def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% the following rectangles separate the regions
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/TitleBox { 590 750 38 710 } def
|
|
Packit Service |
392537 |
/StatBox { 590 710 38 660 } def
|
|
Packit Service |
392537 |
/HeadingBox { 590 660 38 640 } def
|
|
Packit Service |
392537 |
/HostBox { 590 640 38 0 } def
|
|
Packit Service |
392537 |
/CFline { 208 710 208 660 } def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
%%%%
|
|
Packit Service |
392537 |
%%%% END OF USER-CONFIGURABLE OPTIONS
|
|
Packit Service |
392537 |
%%%%
|
|
Packit Service |
392537 |
%%%% the rest of this file contains the internal functions that are used
|
|
Packit Service |
392537 |
%%%% by genlabel to draw the label
|
|
Packit Service |
392537 |
%%%%
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
% Initial Setup... draws everything that is the same for all labels
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% function to draw a box
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/box {
|
|
Packit Service |
392537 |
/ury exch def
|
|
Packit Service |
392537 |
/urx exch def
|
|
Packit Service |
392537 |
/lly exch def
|
|
Packit Service |
392537 |
/llx exch def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
llx lly moveto
|
|
Packit Service |
392537 |
llx ury lineto
|
|
Packit Service |
392537 |
urx ury lineto
|
|
Packit Service |
392537 |
urx lly lineto
|
|
Packit Service |
392537 |
closepath
|
|
Packit Service |
392537 |
} def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% move the origin up a bit
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
0 20 translate
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% draw all of the boxes
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
0 setgray
|
|
Packit Service |
392537 |
2 setlinewidth % thick lines
|
|
Packit Service |
392537 |
StatBox box stroke
|
|
Packit Service |
392537 |
TitleBox box stroke
|
|
Packit Service |
392537 |
HeadingBox box stroke
|
|
Packit Service |
392537 |
HostBox box stroke
|
|
Packit Service |
392537 |
CFline moveto lineto stroke
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
HeadingFont
|
|
Packit Service |
392537 |
HeadingFilePos moveto
|
|
Packit Service |
392537 |
(File #) show
|
|
Packit Service |
392537 |
HeadingHostPos moveto
|
|
Packit Service |
392537 |
(Host) show
|
|
Packit Service |
392537 |
HeadingFsPos moveto
|
|
Packit Service |
392537 |
(File System) show
|
|
Packit Service |
392537 |
HeadingLvlPos moveto
|
|
Packit Service |
392537 |
(Level) stringwidth pop 2 div neg 0 rmoveto (Level) show
|
|
Packit Service |
392537 |
HeadingOSizePos1 moveto
|
|
Packit Service |
392537 |
(Original) stringwidth pop 2 div neg 0 rmoveto (Original) show
|
|
Packit Service |
392537 |
HeadingOSizePos moveto
|
|
Packit Service |
392537 |
(File Size (KB)) stringwidth pop 2 div neg 0 rmoveto (File Size (KB)) show
|
|
Packit Service |
392537 |
HeadingCSizePos1 moveto
|
|
Packit Service |
392537 |
(Compressed) stringwidth pop 2 div neg 0 rmoveto (Compressed) show
|
|
Packit Service |
392537 |
HeadingCSizePos moveto
|
|
Packit Service |
392537 |
(File Size (KB)) stringwidth pop 2 div neg 0 rmoveto (File Size (KB)) show
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
% the following functions draw strings for each kind of information
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
/CurrStatY StatPos exch pop def
|
|
Packit Service |
392537 |
/CurrMessY MessPos exch pop def
|
|
Packit Service |
392537 |
HostBasePos /CurrColumnY exch def
|
|
Packit Service |
392537 |
/CurrColumnX exch def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% DrawStat draws the string on the top of the stack in the next position
|
|
Packit Service |
392537 |
% in section 'A'
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/DrawStat {
|
|
Packit Service |
392537 |
StatFont
|
|
Packit Service |
392537 |
StatPos pop CurrStatY moveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
/CurrStatY CurrStatY StatSep sub def
|
|
Packit Service |
392537 |
} def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% DrawTitle draws the string on the top of the stack in section 'B'
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/DrawTitle {
|
|
Packit Service |
392537 |
TitleFont
|
|
Packit Service |
392537 |
TitlePos moveto
|
|
Packit Service |
392537 |
dup stringwidth pop 2 div neg 0 rmoveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
} def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% DrawDate draws the string on the top of the stack in section 'C'
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/DrawDate {
|
|
Packit Service |
392537 |
DateFont
|
|
Packit Service |
392537 |
DatePos moveto
|
|
Packit Service |
392537 |
dup stringwidth pop neg 0 rmoveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
} def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% DrawLoc draws the string on the top of the stack in section 'C'
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/DrawLoc {
|
|
Packit Service |
392537 |
LocFont
|
|
Packit Service |
392537 |
LocPos moveto
|
|
Packit Service |
392537 |
dup stringwidth pop 2 div neg 0 rmoveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
} def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% DrawVers draws the string on the top of the stack in section 'C'
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/DrawVers {
|
|
Packit Service |
392537 |
VersFont
|
|
Packit Service |
392537 |
VersPos moveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
} def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% DrawMess draws the string on the top of the stack in section 'F'
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/DrawMess {
|
|
Packit Service |
392537 |
MessFont
|
|
Packit Service |
392537 |
MessPos pop CurrMessY moveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
/CurrMessY CurrMessY MessSep sub def
|
|
Packit Service |
392537 |
} def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% Fill in Location name and message
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
(Magic Software Development, Inc.) DrawLoc
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
(To restore:) DrawMess
|
|
Packit Service |
392537 |
( position tape at the start of the file and run:) DrawMess
|
|
Packit Service |
392537 |
( dd if=/dev/nrst0 bs=32k skip=1 | zcat | restore -if -) DrawMess
|
|
Packit Service |
392537 |
( or run:) DrawMess
|
|
Packit Service |
392537 |
( amrestore -p /dev/nrst0 <host> <filesystem> | restore -if -) DrawMess
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
% DrawHost expects six strings to be on the stack. The strings are
|
|
Packit Service |
392537 |
% Host Name, Partition Name, Dump Level, Tape File Number, and Output Size.
|
|
Packit Service |
392537 |
%
|
|
Packit Service |
392537 |
/DrawHost {
|
|
Packit Service |
392537 |
HostFont
|
|
Packit Service |
392537 |
.25 setlinewidth % thin lines
|
|
Packit Service |
392537 |
HeadingCSizePos pop CurrColumnY moveto
|
|
Packit Service |
392537 |
-22 0 rmoveto show
|
|
Packit Service |
392537 |
HeadingOSizePos pop CurrColumnY moveto
|
|
Packit Service |
392537 |
-22 0 rmoveto show
|
|
Packit Service |
392537 |
HeadingFilePos pop CurrColumnY moveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
HeadingLvlPos pop CurrColumnY moveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
HeadingFsPos pop CurrColumnY moveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
HeadingHostPos pop CurrColumnY moveto
|
|
Packit Service |
392537 |
show
|
|
Packit Service |
392537 |
38 CurrColumnY 2.5 sub moveto 590 CurrColumnY 2.5 sub lineto stroke
|
|
Packit Service |
392537 |
/CurrColumnY CurrColumnY HostSep sub def
|
|
Packit Service |
392537 |
} def
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
%%%%
|
|
Packit Service |
392537 |
%%%% END OF TEMPLATE FILE
|
|
Packit Service |
392537 |
%%%%
|