blob: 0ec7aca632878ac2f485a6c56bf289a9c099a220 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|