cristy | 6f24258 | 2012-12-01 01:40:29 +0000 | [diff] [blame] | 1 | #!/bin/sh |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2 | # |
Cristy | f6ff9ea | 2016-12-05 09:53:35 -0500 | [diff] [blame] | 3 | # Copyright 1999-2017 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4 | # 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 | # |
Cristy | 6459959 | 2016-11-04 22:32:09 -0400 | [diff] [blame] | 9 | # https://www.imagemagick.org/script/license.php |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10 | # |
| 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 | |
| 22 | top_srcdir='@abs_top_srcdir@' |
| 23 | top_builddir='@abs_top_builddir@' |
| 24 | |
| 25 | MAGICK_CODER_MODULE_PATH='@MAGICK_CODER_MODULE_PATH@' |
| 26 | MAGICK_CONFIGURE_SRC_PATH='@MAGICK_CONFIGURE_SRC_PATH@' |
| 27 | MAGICK_CONFIGURE_BUILD_PATH='@MAGICK_CONFIGURE_BUILD_PATH@' |
| 28 | MAGICK_FILTER_MODULE_PATH='@MAGICK_FILTER_MODULE_PATH@' |
| 29 | DIRSEP='@DIRSEP@' |
| 30 | |
| 31 | PATH="${top_builddir}/utilities:${PATH}" |
| 32 | |
| 33 | if test -n "$VERBOSE" |
| 34 | then |
| 35 | echo "$@" |
| 36 | fi |
| 37 | env \ |
cristy | 6fc9134 | 2013-07-31 22:20:19 +0000 | [diff] [blame] | 38 | LD_LIBRARY_PATH="${top_builddir}/MagickCore/.libs:${top_builddir}/MagickWand/.libs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"" \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 39 | 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 | "$@" |