Debian Codegraph @

debian/patches/0004-Allow-distribution-to-custumize-the-html-pointer-to-.patch

raw
1 From: =?utf-8?q?Bastien_ROUCARI=C3=88S?= <[email protected]>
2 Date: Fri, 2 Feb 2018 22:17:26 +0100
3 Subject: Allow distribution to custumize the html pointer to documentation
4
5 Allow to say on debian system you might install the imagemagick-doc package
6
7 Forwarded: yes, https://github.com/ImageMagick/ImageMagick/issues/305
8 Bug-debian: https://bugs.debian.org/727739
9 ---
10 configure.ac | 12 ++++++++++++
11 utilities/conjure.1.in | 4 ++--
12 utilities/convert.1.in | 5 +++--
13 utilities/display.1.in | 4 ++--
14 utilities/identify.1.in | 4 ++--
15 utilities/import.1.in | 4 ++--
16 utilities/mogrify.1.in | 4 ++--
17 utilities/montage.1.in | 4 ++--
18 utilities/stream.1.in | 4 ++--
19 9 files changed, 29 insertions(+), 16 deletions(-)
20
21 diff --git a/configure.ac b/configure.ac
22 index 3226e5b..8b863dd 100644
23 --- a/configure.ac
24 +++ b/configure.ac
25 @@ -3232,6 +3232,18 @@ esac
26 AC_DEFINE_UNQUOTED([DOCUMENTATION_PATH],["$DEFINE_DOCUMENTATION_PATH"],[Directory where ImageMagick documents live.])
27 AC_SUBST([DOCUMENTATION_PATH])
28
29 +
30 +#
31 +# Add distribution specific string for documentation
32 +AC_ARG_WITH([extra-doc-dir],
33 + [AC_HELP_STRING([--with-extra-doc-dir=""],
34 + [extra documentation dir could be overriden by distribution, for instance by " (you may install the imagemagick-doc package)"])],
35 + [extra_doc_dir="$withval"],
36 + [extra_doc_dir=""])
37 +AC_DEFINE_UNQUOTED(EXTRA_DOC_DIR,"$EXTRA_DOC_DIR",[Extra documentation dir could be overriden by distribution, for instance by " (you may install th imagemagick-doc package)"])
38 +AC_SUBST(EXTRA_DOC_DIR,$extra_doc_dir)
39 +
40 +
41 #
42 # Enable/Disable documentation
43 AC_ARG_ENABLE([docs],
44 diff --git a/utilities/conjure.1.in b/utilities/conjure.1.in
45 index 718e57d..1209790 100644
46 --- a/utilities/conjure.1.in
47 +++ b/utilities/conjure.1.in
48 @@ -7,7 +7,7 @@ conjure \- interprets and executes scripts written in the Magick Scripting Langu
49 .SH OVERVIEW
50 The \fBconjure\fP program is a member of the ImageMagick(1) suite of tools. Use it to process a Magick Scripting Language (MSL) script. The Magick scripting language (MSL) will primarily benefit those that want to accomplish custom image processing tasks but do not wish to program, or those that do not have access to a Perl interpreter or a compiler.
51
52 -For more information about the conjure command, point your browser to file://@DOCUMENTATION_PATH@/www/conjure.html or https://imagemagick.org/script/conjure.php.
53 +For more information about the conjure command, point your browser to file://@DOCUMENTATION_PATH@/www/conjure.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/conjure.php.
54 .SH DESCRIPTION
55 Image Settings:
56 \-monitor monitor progress
57 @@ -31,4 +31,4 @@ ImageMagick(1)
58
59 .SH COPYRIGHT
60
61 -\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or https://imagemagick.org/license/\fP
62 +\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/license.php\fP
63 diff --git a/utilities/convert.1.in b/utilities/convert.1.in
64 index 10bb0e3..d51b986 100644
65 --- a/utilities/convert.1.in
66 +++ b/utilities/convert.1.in
67 @@ -7,7 +7,7 @@ convert \- convert between image formats as well as resize an image, blur, crop,
68 .SH OVERVIEW
69 The \fBconvert\fP program is a member of the ImageMagick(1) suite of tools. Use it to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
70
71 -For more information about the convert command, point your browser to file://@DOCUMENTATION_PATH@/www/convert.html or https://imagemagick.org/script/convert.php.
72 +For more information about the convert command, point your browser to file://@DOCUMENTATION_PATH@/www/convert.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/convert.php.
73 .SH DESCRIPTION
74 Image Settings:
75 \-adjoin join images into a single multi-image file
76 @@ -336,4 +336,5 @@ By default, the image format of `file' is determined by its magic number. To sp
77 ImageMagick(1)
78
79 .SH COPYRIGHT
80 -\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or https://imagemagick.org/license/\fP
81 +
82 +\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/license.php\fP
83 diff --git a/utilities/display.1.in b/utilities/display.1.in
84 index d9a24cc..e890024 100644
85 --- a/utilities/display.1.in
86 +++ b/utilities/display.1.in
87 @@ -7,7 +7,7 @@ display \- displays an image or image sequence on any X server.
88 .SH OVERVIEW
89 The \fBdisplay\fP program is a member of the ImageMagick(1) suite of tools. Use it to display an image or image sequence on any X server.
90
91 -For more information about the display command, point your browser to file://@DOCUMENTATION_PATH@/www/display.html or https://imagemagick.org/script/display.php.
92 +For more information about the display command, point your browser to file://@DOCUMENTATION_PATH@/www/display.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/display.php.
93 .SH DESCRIPTION
94 Image Settings:
95 \-alpha option on, activate, off, deactivate, set, opaque, copy
96 @@ -137,4 +137,4 @@ ImageMagick(1)
97
98 .SH COPYRIGHT
99
100 -\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or https://imagemagick.org/license/\fP
101 +\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/license.php\fP
102 diff --git a/utilities/identify.1.in b/utilities/identify.1.in
103 index 60660db..a40cbfd 100644
104 --- a/utilities/identify.1.in
105 +++ b/utilities/identify.1.in
106 @@ -7,7 +7,7 @@ identify \- describes the format and characteristics of one or more image files.
107 .SH OVERVIEW
108 The \fBidentify\fP program is a member of the ImageMagick(1) suite of tools. It describes the format and characteristics of one or more image files. It also reports if an image is incomplete or corrupt. The information returned includes the image number, the file name, the width and height of the image, whether the image is colormapped or not, the number of colors in the image (by default off use \fI-define unique=true\fP option), the number of bytes in the image, the format of the image (JPEG, PNM, etc.), and finally the number of seconds it took to read and process the image. Many more attributes are available with the verbose option.
109
110 -For more information about the identify command, point your browser to file://@DOCUMENTATION_PATH@/www/identify.html or https://imagemagick.org/script/identify.php.
111 +For more information about the identify command, point your browser to file://@DOCUMENTATION_PATH@/www/identify.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/identify.php.
112 .SH DESCRIPTION
113 Image Settings:
114 \-alpha option on, activate, off, deactivate, set, opaque, copy
115 @@ -77,4 +77,4 @@ ImageMagick(1)
116
117 .SH COPYRIGHT
118
119 -\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or https://imagemagick.org/license/\fP
120 +\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/license.php\fP
121 diff --git a/utilities/import.1.in b/utilities/import.1.in
122 index 9f9dbe9..62a5be3 100644
123 --- a/utilities/import.1.in
124 +++ b/utilities/import.1.in
125 @@ -7,7 +7,7 @@ import \- saves any visible window on an X server and outputs it as an image fil
126 .SH OVERVIEW
127 The \fBimport\fP program is a member of the ImageMagick(1) suite of tools. Use it to capture some or all of an X server screen and save the image to a file.
128
129 -For more information about the import command, point your browser to file://@DOCUMENTATION_PATH@/www/import.html or https://imagemagick.org/script/import.php.
130 +For more information about the import command, point your browser to file://@DOCUMENTATION_PATH@/www/import.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/import.php.
131 .SH DESCRIPTION
132 Image Settings:
133 \-adjoin join images into a single multi-image file
134 @@ -98,4 +98,4 @@ ImageMagick(1)
135
136 .SH COPYRIGHT
137
138 -\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or https://imagemagick.org/license/\fP
139 +\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/license.php\fP
140 diff --git a/utilities/mogrify.1.in b/utilities/mogrify.1.in
141 index 7ade065..533ec17 100644
142 --- a/utilities/mogrify.1.in
143 +++ b/utilities/mogrify.1.in
144 @@ -7,7 +7,7 @@ mogrify \- resize an image, blur, crop, despeckle, dither, draw on, flip, join,
145 .SH OVERVIEW
146 The \fBmogrify\fP program is a member of the ImageMagick(1) suite of tools. Use it to resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. This tool is similar to convert(1) except the original image file is overwritten with any changes you request.
147
148 -For more information about the mogrify command, point your browser to file://@DOCUMENTATION_PATH@/www/mogrify.html or https://imagemagick.org/script/mogrify.php.
149 +For more information about the mogrify command, point your browser to file://@DOCUMENTATION_PATH@/www/mogrify.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/mogrify.php.
150 .SH DESCRIPTION
151 Image Settings:
152 \-adjoin join images into a single multi-image file
153 @@ -333,4 +333,4 @@ ImageMagick(1)
154
155 .SH COPYRIGHT
156
157 -\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or https://imagemagick.org/license/\fP
158 +\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/license.php\fP
159 diff --git a/utilities/montage.1.in b/utilities/montage.1.in
160 index d67d747..61035b4 100644
161 --- a/utilities/montage.1.in
162 +++ b/utilities/montage.1.in
163 @@ -7,7 +7,7 @@ montage \- create a composite image by combining several separate images. The im
164 .SH OVERVIEW
165 The \fBmontage\fP program is a member of the ImageMagick(1) suite of tools. Use it to create a composite image by combining several separate images. The images are tiled on the composite image optionally adorned with a border, frame, image name, and more.
166
167 -For more information about the montage command, point your browser to file://@DOCUMENTATION_PATH@/www/montage.html or https://imagemagick.org/script/montage.php.
168 +For more information about the montage command, point your browser to file://@DOCUMENTATION_PATH@/www/montage.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/montage.php.
169 .SH DESCRIPTION
170 Image Settings:
171 \-adjoin join images into a single multi-image file
172 @@ -146,4 +146,4 @@ ImageMagick(1)
173
174 .SH COPYRIGHT
175
176 -\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or https://imagemagick.org/license/\fP
177 +\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/license.php\fP
178 diff --git a/utilities/stream.1.in b/utilities/stream.1.in
179 index 66c39f1..1f59e26 100644
180 --- a/utilities/stream.1.in
181 +++ b/utilities/stream.1.in
182 @@ -7,7 +7,7 @@ stream \- a lightweight tool to stream one or more pixel components of the image
183 .SH OVERVIEW
184 \fBStream\fP is a lightweight tool to stream one or more pixel components of the image or portion of the image to your choice of storage formats. It writes the pixel components as they are read from the input image a row at a time making \fBstream\fP desirable when working with large images or when you require raw pixel components.
185
186 -For more information about the stream command, point your browser to file://@DOCUMENTATION_PATH@/www/stream.html or https://imagemagick.org/script/stream.php.
187 +For more information about the stream command, point your browser to file://@DOCUMENTATION_PATH@/www/stream.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/stream.php.
188 .SH DESCRIPTION
189 Image Settings:
190 \-authenticate value decrypt image with this password
191 @@ -56,4 +56,4 @@ ImageMagick(1)
192
193 .SH COPYRIGHT
194
195 -\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or https://imagemagick.org/license/\fP
196 +\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/license.php\fP