aboutsummaryrefslogtreecommitdiff
path: root/share/examples/BSD_daemon/poster.sh
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-02-17 19:14:42 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-02-17 19:14:42 +0000
commit3903274f0215746c9970c684029d2e9d9e6bc64c (patch)
treeaafadc2dc9386aac429afc8babee773082040d08 /share/examples/BSD_daemon/poster.sh
parent3a0690fde32706e9b5b2467a7d4ab9203d54590b (diff)
downloadsrc-3903274f0215746c9970c684029d2e9d9e6bc64c.tar.gz
src-3903274f0215746c9970c684029d2e9d9e6bc64c.zip
Add some FreeBSD logo material to the tree:
"FreeBSD.pfa" - the (postscript) font used to write "FreeBSD". "beastie.fig" - a 4.3 BSD style Daemon in vector graphic. "beastie.eps" - same converted to encapsulated postscript. "poster.sh" - an example how to use this stuff. "README" - the full story.
Notes
Notes: svn path=/head/; revision=72575
Diffstat (limited to 'share/examples/BSD_daemon/poster.sh')
-rw-r--r--share/examples/BSD_daemon/poster.sh65
1 files changed, 65 insertions, 0 deletions
diff --git a/share/examples/BSD_daemon/poster.sh b/share/examples/BSD_daemon/poster.sh
new file mode 100644
index 000000000000..c7a21216cb0d
--- /dev/null
+++ b/share/examples/BSD_daemon/poster.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# "THE BEER-WARE LICENSE" (Revision 42):
+# <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
+# can do whatever you want with this stuff. If we meet some day, and you think
+# this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
+# ----------------------------------------------------------------------------
+#
+# $FreeBSD$
+#
+
+echo '%!'
+echo '/beastie {'
+cat beastie.eps
+echo '} def'
+cat FreeBSD.pfa
+
+echo '
+
+/mm {25.4 div 72 mul} def
+/FreeBSD findfont 120 scalefont setfont
+/center 210 mm 2 div def
+/top 297 mm def
+/cshow { dup stringwidth pop 2 div neg 0 rmoveto show } def
+
+% "FreeBSD" across the top.
+% 691 is "top - height of caps - (left - X("F"))"
+center 691 moveto
+(FreeBSD) cshow
+
+% Put beastie in the center
+/sc 1.25 def
+center 125 moveto
+384 sc mul 2 div neg 0 rmoveto
+gsave currentpoint translate sc sc scale beastie grestore
+
+% A box for the bottom text
+gsave
+10 10 moveto
+210 mm 20 sub 0 rlineto
+0 70 rlineto
+210 mm 20 sub neg 0 rlineto
+closepath
+.7 .7 .9 setrgbcolor
+fill
+grestore
+
+% Bottom text
+center 70 moveto
+/NRBWelshGillianBold findfont 50 scalefont setfont
+
+center 30 moveto
+(http://www.FreeBSD.org) cshow
+
+% Do not forget Kirks copyright string.
+10 10 moveto
+/Times-Roman findfont 8 scalefont setfont
+(BSD Daemon ) show
+/Symbol findfont 8 scalefont setfont
+(\343 ) show
+/Times-Roman findfont 8 scalefont setfont
+(Copyright 1988 by Marshall Kirk McKusick. All Rights Reserved.) show
+
+showpage
+'