source: gs2-extensions/xpdf-tools/trunk/src/devel.bash@ 32257

Last change on this file since 32257 was 32238, checked in by ak19, 6 years ago

xpdftools is a GS2 extension, so should source its setup.bash, not gs3-setup.sh. And because of that, must remove the cyclical call to its devel.bash from its setup.bash, because devel.bash already sources setup.bash. (There was no cyclical call issue with gs3-setup.sh). Fixed a mistake in a print statement in CMAKE.sh, the echoed path to cmake was not correct. Fortunately, the rest of the code doesn't use this path (the _CMAKE variable).

  • Property svn:executable set to *
File size: 945 bytes
Line 
1#!/bin/bash
2
3if [ -d cascade-make ] ; then
4 source cascade-make/lib/cascade-lib.bash GEXT_XPDFTOOLS . $*
5fi
6
7if [ -z $GEXT_XPDFTOOLS ] ; then
8# source gs3-setup.sh
9 source setup.bash
10fi
11
12if [ -z $GEXTXPDFTOOLS_DEVEL ] ; then
13 # Set environment variable so we can tell devel.bash has been sourced
14 export GEXTXPDFTOOLS_DEVEL=$GEXT_XPDFTOOLS
15
16 export PATH="$GEXTXPDFTOOLS_INSTALLED/bin:$PATH"
17 export CFLAGS="-I$GEXTXPDFTOOLS_INSTALLED/include $CFLAGS"
18 export CPPFLAGS="-I$GEXTXPDFTOOLS_INSTALLED/include $CPPFLAGS"
19 export CXXFLAGS="-I$GEXTXPDFTOOLS_INSTALLED/include $CXXFLAGS"
20 export LDFLAGS="-L$GEXTXPDFTOOLS_INSTALLED/lib $LDFLAGS"
21 export PKG_CONFIG_PATH="$GEXTXPDFTOOLS_INSTALLED/lib/pkgconfig:$PKG_CONFIG_PATH"
22
23 echo "+Your environment is now setup to compile with the Xpdf-Tools Support Library"
24
25else
26 echo "+Your environment is already setup to compile with the Xpdf-Tools Support Library"
27fi
Note: See TracBrowser for help on using the repository browser.