]> git.saurik.com Git - wxWidgets.git/blame - wx-config-inplace.in
Move version number to 2.8.0.0 and rebake the makefiles
[wxWidgets.git] / wx-config-inplace.in
CommitLineData
ceec2216
RL
1#!/bin/sh
2#
3# Name: wx-config-inplace
4# Purpose: wx configuration in tree search and query tool
5# Author: Ron <ron@debian.org>
66c05fa9 6# Modified by: VZ on 2005-09-20 to make it work with Bourne shell
ceec2216
RL
7# Created: 14/9/2004
8# RCS-ID: $Id$
9# Copyright: (c) 2004 Ron <ron@debian.org>
10# Licence: wxWindows licence
11############################################################################
12
9103d280
RL
13# Not much to do here. Just initialise prefix to point things into the
14# local tree by default and then source the real wx-config if it all still
15# looks sane.
ceec2216 16
0506bbbf
RL
17check_dirname()
18{
19 if [ ! -d "$1" ]; then
20 printf "\n *** Error: Directory '$1'\n" 1>&2
21 printf " no longer exists.\n\n" 1>&2
22 exit 1
23 fi
ea480625 24 ( cd $1 && pwd )
0506bbbf 25}
ceec2216 26
ea480625
VZ
27# set the variables which allow the real wx-config to check if we're using it
28# in place or after installation
29this_prefix=`check_dirname "@abs_top_srcdir@"`
66c05fa9
VZ
30if [ "x$this_prefix" = "x" ]; then
31 exit 1
32fi
ea480625 33this_exec_prefix=`check_dirname "@abs_top_builddir@"`
66c05fa9
VZ
34if [ "x$this_exec_prefix" = "x" ]; then
35 exit 1
36fi
ceec2216 37
ea480625 38. "$this_exec_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@"
ceec2216 39