File: wx-config-inplace.in

package info (click to toggle)
wxwidgets3.0 3.0.5.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 120,464 kB
  • sloc: cpp: 896,633; makefile: 52,303; ansic: 21,971; sh: 5,713; python: 2,940; xml: 1,534; perl: 264; javascript: 33
file content (38 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
#
# Name:        wx-config-inplace
# Purpose:     wx configuration in tree search and query tool
# Author:      Ron <ron@debian.org>
# Modified by: VZ on 2005-09-20 to make it work with Bourne shell
# Created:     14/9/2004
# Copyright:   (c) 2004 Ron <ron@debian.org>
# Licence:     wxWindows licence
############################################################################

# Not much to do here.  Just initialise prefix to point things into the
# local tree by default and then source the real wx-config if it all still
# looks sane.

check_dirname()
{
    if [ ! -d "$1" ]; then
        printf "\n  *** Error: Directory '$1'\n"    1>&2
        printf "             no longer exists.\n\n" 1>&2
        exit 1
    fi
    ( cd $1 && pwd )
}

# set the variables which allow the real wx-config to check if we're using it
# in place or after installation
this_prefix=`check_dirname "@abs_top_srcdir@"`
if [ "x$this_prefix" = "x" ]; then
    exit 1
fi
this_exec_prefix=`check_dirname "@abs_top_builddir@"`
if [ "x$this_exec_prefix" = "x" ]; then
    exit 1
fi

. "$this_exec_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@"