xref: /freebsd/share/examples/BSD_daemon/poster.sh (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1#!/bin/sh
2# ----------------------------------------------------------------------------
3# "THE BEER-WARE LICENSE" (Revision 42):
4# <phk@FreeBSD.ORG> wrote this file.  As long as you retain this notice you
5# can do whatever you want with this stuff. If we meet some day, and you think
6# this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
7# ----------------------------------------------------------------------------
8#
9# $FreeBSD$
10#
11
12echo '%!'
13echo '/beastie {'
14cat beastie.eps
15echo '} def'
16cat FreeBSD.pfa
17
18echo '
19
20/mm {25.4 div 72 mul} def
21/FreeBSD findfont 120 scalefont setfont
22/center 210 mm 2 div def
23/top 297 mm def
24/cshow { dup stringwidth pop 2 div neg 0 rmoveto show } def
25
26% "FreeBSD" across the top.
27% 691 is "top - height of caps - (left - X("F"))"
28center 691 moveto
29(FreeBSD) cshow
30
31% Put beastie in the center
32/sc 1.25 def
33center 125 moveto
34384 sc mul 2 div neg 0 rmoveto
35gsave currentpoint translate sc sc scale beastie grestore
36
37% A box for the bottom text
38gsave
3910 30 moveto
40210 mm 20 sub 0 rlineto
410 70 rlineto
42210 mm 20 sub neg 0 rlineto
43closepath
44.7 .7 .9 setrgbcolor
45fill
46grestore
47
48% Bottom text
49center 90 moveto
50/FreeBSD findfont 50 scalefont setfont
51
52center 50 moveto
53(https://www.FreeBSD.org) cshow
54
55% Do not forget Kirks copyright string.
5610 105 moveto
57/Times-Roman findfont 8 scalefont setfont
58(BSD Daemon ) show
59/Symbol findfont 8 scalefont setfont
60(\343 ) show
61/Times-Roman findfont 8 scalefont setfont
62(Copyright 1988 by Marshall Kirk McKusick.  All Rights Reserved.) show
63
64showpage
65'
66