Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/share/examples/BSD_daemon/poster.sh
39476 views
1
#!/bin/sh
2
# ----------------------------------------------------------------------------
3
# "THE BEER-WARE LICENSE" (Revision 42):
4
# <[email protected]> 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
11
echo '%!'
12
echo '/beastie {'
13
cat beastie.eps
14
echo '} def'
15
cat FreeBSD.pfa
16
17
echo '
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"))"
27
center 691 moveto
28
(FreeBSD) cshow
29
30
% Put beastie in the center
31
/sc 1.25 def
32
center 125 moveto
33
384 sc mul 2 div neg 0 rmoveto
34
gsave currentpoint translate sc sc scale beastie grestore
35
36
% A box for the bottom text
37
gsave
38
10 30 moveto
39
210 mm 20 sub 0 rlineto
40
0 70 rlineto
41
210 mm 20 sub neg 0 rlineto
42
closepath
43
.7 .7 .9 setrgbcolor
44
fill
45
grestore
46
47
% Bottom text
48
center 90 moveto
49
/FreeBSD findfont 50 scalefont setfont
50
51
center 50 moveto
52
(https://www.FreeBSD.org) cshow
53
54
% Do not forget Kirks copyright string.
55
10 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
63
showpage
64
'
65
66