summaryrefslogtreecommitdiffstats
path: root/cygwin-scripts.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cygwin-scripts.sh')
-rwxr-xr-xcygwin-scripts.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/cygwin-scripts.sh b/cygwin-scripts.sh
index 3274a48..669ff6b 100755
--- a/cygwin-scripts.sh
+++ b/cygwin-scripts.sh
@@ -6,8 +6,8 @@
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,15 +16,18 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
# This is a useful command-line script through which one can use the
-# macros from cygwin-macros.cygwin cross-compilation.
+# macros from /etc/rpm/macros.cross, macros.cygwin32 and macros.cygwin64
if [ "`basename $0`" = "i686-pc-cygwin-pkg-config" ] ; then
- NAME="_cygwin_pkg_config"
+ NAME="cygwin32_pkg_config"
+elif [ "`basename $0`" = "x86_64-pc-cygwin-pkg-config" ] ; then
+ NAME="cygwin64_pkg_config"
else
- NAME="_`basename $0|tr -- - _`"
+ NAME="`basename $0|tr -- - _`"
fi
# NOTE: The use of 'eval' in combination with '$@' is a potential security risk