]> git.saurik.com Git - wxWidgets.git/commitdiff
added --basename and --release flags to wx-config (patch #750815)
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 18 Jun 2003 16:08:15 +0000 (16:08 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 18 Jun 2003 16:08:15 +0000 (16:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wx-config.in

index 878c325284cc9c98048a98b8afec68d00fefbdd6..bf132fc7976e00703eb8a5e8d0844521ec01b32c 100755 (executable)
@@ -33,8 +33,8 @@ makeabs()
 usage()
 {
     cat <<EOF
-Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--static]
-                 [--libs] [--gl-libs]
+Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--release]
+                 [--basename] [--static] [--libs] [--gl-libs]
                  [--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
                  [--cc] [--cxx] [--ld]
 
@@ -131,6 +131,14 @@ while test $# -gt 0; do
     --version)
       echo @WX_MAJOR_VERSION_NUMBER@.@WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
       ;;
+    --release)
+      # Should echo @WX_RELEASE@ instead, but that doesn't seem to be replaced after 
+      # configure has run on this file.
+      echo @WX_MAJOR_VERSION_NUMBER@.@WX_MINOR_VERSION_NUMBER@
+      ;;
+    --basename)
+      echo @WX_LIBRARY_BASENAME@
+      ;;
     --static)
       static_flag=yes
       ;;