66c68a3
#!/bin/sh -
66c68a3
1ea30e6
# mingw32-scripts
66c68a3
# Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones.
b8c5804
# Copyright (C) 2008 Levente Farkas
66c68a3
#
66c68a3
# This program is free software; you can redistribute it and/or modify
66c68a3
# it under the terms of the GNU General Public License as published by
66c68a3
# the Free Software Foundation; either version 2 of the License, or
66c68a3
# (at your option) any later version.
66c68a3
#
66c68a3
# This program is distributed in the hope that it will be useful,
66c68a3
# but WITHOUT ANY WARRANTY; without even the implied warranty of
66c68a3
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
66c68a3
# GNU General Public License for more details.
66c68a3
#
66c68a3
# You should have received a copy of the GNU General Public License
66c68a3
# along with this program; if not, write to the Free Software
66c68a3
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
66c68a3
b8c5804
# This is a useful command-line script through which one can use the
b8c5804
# macros from mingw32-macros.mingw32 cross-compilation. 
66c68a3
b136c92
if [ "`basename $0`" = "i686-pc-mingw32-pkg-config" ] ; then
b136c92
    NAME="_mingw32_pkg_config"
b136c92
else
b136c92
    NAME="_`basename $0|tr -- - _`"
b136c92
fi
5051797
5051797
# NOTE: The use of 'eval' in combination with '$@' is a potential security risk
5051797
#       We should find a more safe replacement for this command
5051797
#       Suggestions are welcome at the Fedora MinGW mailing list
5051797
eval "`rpm --eval "%{$NAME}"`" '"$@"'