~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to make/fakefop

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Copyright Tuncer Ayaz 2010. All Rights Reserved.
 
4
#
 
5
# %CopyrightBegin%
 
6
#
 
7
# Copyright Ericsson AB 2010. All Rights Reserved.
 
8
#
 
9
# The contents of this file are subject to the Erlang Public License,
 
10
# Version 1.1, (the "License"); you may not use this file except in
 
11
# compliance with the License. You should have received a copy of the
 
12
# Erlang Public License along with this software. If not, it can be
 
13
# retrieved online at http://www.erlang.org/.
 
14
#
 
15
# Software distributed under the License is distributed on an "AS IS"
 
16
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
17
# the License for the specific language governing rights and limitations
 
18
# under the License.
 
19
#
 
20
# %CopyrightEnd%
 
21
#
 
22
# Author: Tuncer Ayaz
 
23
#
 
24
 
 
25
if [ $# -lt 4 ]
 
26
then
 
27
  echo "Usage: fakefop -fo IGNORED -pdf OUTFILE"
 
28
  exit 1
 
29
fi
 
30
 
 
31
OUTFILE=$4
 
32
NAME=`basename $4 .pdf`
 
33
 
 
34
echo Write $OUTFILE
 
35
cat > $OUTFILE <<EndOfFile
 
36
%PDF-1.4
 
37
1 0 obj
 
38
  << /Type /Catalog
 
39
    /Outlines 2 0 R
 
40
    /Pages 3 0 R
 
41
  >>
 
42
endobj
 
43
 
 
44
2 0 obj
 
45
  << /Type /Outlines
 
46
    /Count 0
 
47
  >>
 
48
endobj
 
49
 
 
50
3 0 obj
 
51
  << /Type /Pages
 
52
    /Kids [4 0 R]
 
53
    /Count 1
 
54
  >>
 
55
endobj
 
56
 
 
57
4 0 obj
 
58
  << /Type /Page
 
59
      /Parent 3 0 R
 
60
      /MediaBox [0 0 612 492]
 
61
      /Contents 5 0 R
 
62
      /Resources << /ProcSet 6 0 R
 
63
                    /Font << /F1 7 0 R >>
 
64
                >>
 
65
  >>
 
66
endobj
 
67
 
 
68
5 0 obj
 
69
  << /Length 73 >>
 
70
stream
 
71
  BT
 
72
    /F1 24 Tf
 
73
    10 400 Td
 
74
    ($NAME) Tj
 
75
  ET
 
76
  BT
 
77
    /F1 24 Tf
 
78
    10 350 Td
 
79
    (\(placeholder PDF generated without FOP\)) Tj
 
80
  ET
 
81
endstream
 
82
endobj
 
83
 
 
84
6 0 obj
 
85
  [/PDF /Text]
 
86
endobj
 
87
7 0 obj
 
88
  << /Type /Font
 
89
    /Subtype /Type1
 
90
    /Name /F1
 
91
    /BaseFont /Helvetica
 
92
    /Encoding /MacRomanEncoding
 
93
  >>
 
94
endobj
 
95
xref
 
96
0 8
 
97
0000000000 65535 f
 
98
0000000009 00000 n
 
99
0000000074 00000 n
 
100
0000000120 00000 n
 
101
0000000179 00000 n
 
102
0000000364 00000 n
 
103
0000000466 00000 n
 
104
0000000496 00000 n
 
105
 
 
106
trailer
 
107
  << /Size 8
 
108
    /Root 1 0 R
 
109
  >>
 
110
startxref
 
111
625
 
112
%%EOF
 
113
EndOfFile