wx-config-inplace.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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: VZ on 2005-09-20 to make it work with Bourne shell
  7. # Created: 14/9/2004
  8. # Copyright: (c) 2004 Ron <ron@debian.org>
  9. # Licence: wxWindows licence
  10. ############################################################################
  11. # Not much to do here. Just initialise prefix to point things into the
  12. # local tree by default and then source the real wx-config if it all still
  13. # looks sane.
  14. check_dirname()
  15. {
  16. if [ ! -d "$1" ]; then
  17. printf "\n *** Error: Directory '$1'\n" 1>&2
  18. printf " no longer exists.\n\n" 1>&2
  19. exit 1
  20. fi
  21. ( cd $1 && pwd )
  22. }
  23. # set the variables which allow the real wx-config to check if we're using it
  24. # in place or after installation
  25. this_prefix=`check_dirname "@abs_top_srcdir@"`
  26. if [ "x$this_prefix" = "x" ]; then
  27. exit 1
  28. fi
  29. this_exec_prefix=`check_dirname "@abs_top_builddir@"`
  30. if [ "x$this_exec_prefix" = "x" ]; then
  31. exit 1
  32. fi
  33. . "$this_exec_prefix/lib/wx/config/@TOOLCHAIN_FULLNAME@"