]>
Commit | Line | Data |
---|---|---|
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> | |
6 | # Modified by: | |
7 | # Created: 14/9/2004 | |
8 | # RCS-ID: $Id$ | |
9 | # Copyright: (c) 2004 Ron <ron@debian.org> | |
10 | # Licence: wxWindows licence | |
11 | ############################################################################ | |
12 | ||
13 | # Not much to do here. Just initialise some variables to point things | |
14 | # into the local tree by default and then source the real wx-config if | |
15 | # it all still looks sane. It typically should be if you got this far. | |
16 | ||
17 | check_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 | |
24 | ( cd $1 && pwd ) | |
25 | } | |
26 | ||
27 | this_prefix=$(check_dirname "@abs_top_srcdir@") || exit | |
28 | this_exec_prefix=$(check_dirname "@abs_top_builddir@") || exit | |
29 | flag_option_inplace=yes | |
30 | ||
31 | . "$this_exec_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@" | |
32 |