~ubuntu-branches/ubuntu/intrepid/graphicsmagick/intrepid

« back to all changes in this revision

Viewing changes to rungm.sh.in

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2006-05-06 16:28:08 UTC
  • Revision ID: james.westby@ubuntu.com-20060506162808-vt2ni3r5nytcszms
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# !/bin/sh
 
2
# Copyright (C) 2003, 2004 GraphicsMagick Group
 
3
#
 
4
# This program is covered by multiple licenses, which are described in
 
5
# Copyright.txt. You should have received a copy of Copyright.txt with this
 
6
# package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
 
7
#
 
8
# Execute a program with the environment required to execute it using
 
9
# files from the source and build directory.  This helps avoid needing to
 
10
# install GraphicsMagick before testing it.
 
11
#
 
12
# Written by Bob Friesenhahn <bfriesen@simple.dallas.tx.us> December 2003
 
13
#
 
14
WinPathScript=@WinPathScript@
 
15
 
 
16
top_srcdir='@abs_top_srcdir@'
 
17
top_builddir='@abs_top_builddir@'
 
18
MAGICK_CODER_MODULE_PATH="${top_builddir}/coders"
 
19
MAGICK_CONFIGURE_SRC_PATH="${top_srcdir}/config"
 
20
MAGICK_CONFIGURE_BUILD_PATH="${top_builddir}/config"
 
21
MAGICK_FILTER_MODULE_PATH="${top_builddir}/filters"
 
22
PATH="${top_builddir}/utilities:${PATH}"
 
23
 
 
24
dirsep=':'
 
25
case @host_os@
 
26
in
 
27
  mingw32)
 
28
   dirsep=';'
 
29
   MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
 
30
   MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
 
31
   MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
 
32
   MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
 
33
   ;;
 
34
esac
 
35
 
 
36
echo "$@"
 
37
env \
 
38
  LD_LIBRARY_PATH="${top_builddir}/magick/.libs:${LD_LIBRARY_PATH}" \
 
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
  "$@"