xref: /freebsd/share/examples/BSD_daemon/poster.sh (revision 8aac90f18aef7c9eea906c3ff9a001ca7b94f375)
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#
10
11echo '%!'
12echo '/beastie {'
13cat beastie.eps
14echo '} def'
15cat FreeBSD.pfa
16
17echo '
18
19/mm {25.4 div 72 mul} def
20/FreeBSD findfont 120 scalefont setfont
21/center 210 mm 2 div def
22/top 297 mm def
23/cshow { dup stringwidth pop 2 div neg 0 rmoveto show } def
24
25% "FreeBSD" across the top.
26% 691 is "top - height of caps - (left - X("F"))"
27center 691 moveto
28(FreeBSD) cshow
29
30% Put beastie in the center
31/sc 1.25 def
32center 125 moveto
33384 sc mul 2 div neg 0 rmoveto
34gsave currentpoint translate sc sc scale beastie grestore
35
36% A box for the bottom text
37gsave
3810 30 moveto
39210 mm 20 sub 0 rlineto
400 70 rlineto
41210 mm 20 sub neg 0 rlineto
42closepath
43.7 .7 .9 setrgbcolor
44fill
45grestore
46
47% Bottom text
48center 90 moveto
49/FreeBSD findfont 50 scalefont setfont
50
51center 50 moveto
52(https://www.FreeBSD.org) cshow
53
54% Do not forget Kirks copyright string.
5510 105 moveto
56/Times-Roman findfont 8 scalefont setfont
57(BSD Daemon ) show
58/Symbol findfont 8 scalefont setfont
59(\343 ) show
60/Times-Roman findfont 8 scalefont setfont
61(Copyright 1988 by Marshall Kirk McKusick.  All Rights Reserved.) show
62
63showpage
64'
65