blob: 802716034b244e6a3cfbc2c819f66181faa98e85 [file] [log] [blame]
cristy6f242582012-12-01 01:40:29 +00001#!/bin/sh
cristy3ed852e2009-09-05 21:47:34 +00002#
Cristyd8420112021-01-01 14:52:00 -05003# Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00004# dedicated to making software imaging solutions freely available.
5#
6# You may not use this file except in compliance with the License. You may
7# obtain a copy of the License at
8#
Cristy1eccad32018-09-09 19:34:39 -04009# https://imagemagick.org/script/license.php
cristy3ed852e2009-09-05 21:47:34 +000010#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# Convenience script to verify the ImageMagick build before you install. For
18# example:
19#
20# magick.sh convert -size 640x480 gradient:black-yellow gradient.png
21
22top_srcdir='@abs_top_srcdir@'
23top_builddir='@abs_top_builddir@'
24
25MAGICK_CODER_MODULE_PATH='@MAGICK_CODER_MODULE_PATH@'
26MAGICK_CONFIGURE_SRC_PATH='@MAGICK_CONFIGURE_SRC_PATH@'
27MAGICK_CONFIGURE_BUILD_PATH='@MAGICK_CONFIGURE_BUILD_PATH@'
28MAGICK_FILTER_MODULE_PATH='@MAGICK_FILTER_MODULE_PATH@'
Cristy85a219d2019-12-15 10:22:13 -050029DIRSEP=':'
cristy3ed852e2009-09-05 21:47:34 +000030
31PATH="${top_builddir}/utilities:${PATH}"
32
33if test -n "$VERBOSE"
34then
35 echo "$@"
36fi
37env \
Michal Suchanek9ab10852017-09-05 17:42:14 +020038 LD_LIBRARY_PATH="${top_builddir}/MagickCore/.libs:${top_builddir}/MagickWand/.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \
cristy3ed852e2009-09-05 21:47:34 +000039 MAGICK_CODER_MODULE_PATH="${MAGICK_CODER_MODULE_PATH}" \
40 MAGICK_CONFIGURE_PATH="${MAGICK_CONFIGURE_BUILD_PATH}${DIRSEP}${MAGICK_CONFIGURE_SRC_PATH}" \
41 MAGICK_FILTER_MODULE_PATH="${MAGICK_FILTER_MODULE_PATH}" \
42 PATH="${PATH}" \
43 "$@"