aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/Books/src/make_headers
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
committerErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
commit84adefa331c4159d432d22840663c38f155cd4c1 (patch)
treebff9a9c66adda4df2106dfd0e5c053ab182a12bd /system/doc/Books/src/make_headers
downloadotp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz
otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2
otp-84adefa331c4159d432d22840663c38f155cd4c1.zip
The R13B03 release.OTP_R13B03
Diffstat (limited to 'system/doc/Books/src/make_headers')
-rwxr-xr-xsystem/doc/Books/src/make_headers30
1 files changed, 30 insertions, 0 deletions
diff --git a/system/doc/Books/src/make_headers b/system/doc/Books/src/make_headers
new file mode 100755
index 0000000000..0ec7aca632
--- /dev/null
+++ b/system/doc/Books/src/make_headers
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# Make Postscript header files (frame and crop marks)
+#
+# From environment: BOOK CSFILE USER BOOKBUILD
+
+DATE=`date`
+VIEW=`cleartool pwv -s -set`
+LATEX=`which latex`
+DVIPSVSN=`dvips -version`
+DVIPS=`which dvips`
+DOCBVSN=`docb_transform -version`
+DOCB=`which docb_transform`
+for marks in frame crop; do
+ sed -e "s/@DATE@/$DATE/g" \
+ -e "s/@BOOK@/$BOOK/g" \
+ -e "s/@MARKS@/$marks/g" \
+ -e "s;@CSFILE@;$CSFILE;g" \
+ -e "s/@VIEW@/$VIEW/g" \
+ -e "s/@USER@/$USER/g" \
+ -e "s;@LATEX@;$LATEX;g" \
+ -e "s;@DVIPSVSN@;$DVIPSVSN;g" \
+ -e "s;@DVIPS@;$DVIPS;g" \
+ -e "s/@DOCBVSN@/$DOCBVSN/g" \
+ -e "s;@DOCB@;$DOCB;g" \
+ -e "s;@BOOKBUILD@;$BOOKBUILD;g" \
+ -e "s;@BUILDSCRIPT@;$BUILDSCRIPT;g" \
+ frame_crop.header.src > $marks.header
+done
+