X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/89816e4f30339f72fd44d389dce7ff6750408b6c..a2c6537e60ab5564d6bf33bb14ac8c42744aa93c:/wx-config.in diff --git a/wx-config.in b/wx-config.in index 72c1e4b3dd..579bcf0d63 100755 --- a/wx-config.in +++ b/wx-config.in @@ -144,29 +144,13 @@ get_ldflags_gui() echo $flags_to_ret } -# return the absolute path prepending builddir to it if needed -makeabs() -{ - path=$1 - # TODO: this only works under Unix and even there it could be - # enhanced to remove ".." and "." - if [ `echo $path | sed 's/^\(.\).*/\1/'` != "/" ]; then - if [ $path = "." ]; then - path=$builddir - else - path="$builddir/$path" - fi - fi - - echo $path -} - usage() { cat <&2 ;; + -*) + # unrecognized flag is error + usage 1 1>&2 + ;; esac shift done