build/msys-perl-wrapper
author Benjamin Smedberg <benjamin@smedbergs.us>
Tue, 22 Sep 2009 09:05:48 -0400
changeset 32951 1c4751f81b1d5665ece3d21c5862b16973897ae4
child 94846 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 485409 - Handle a Windows-style path as $srcdir in configure, by modifying the default autoconf M4 macros so that they recognize Z:/ as an absolute path. r=ted

#!/bin/sh

args=""

for i in "${@}"
do
    case "$i" in
    -I?:/*)
        i="$(echo "${i}" | sed -e 's|^-I\(.\):/|-I/\1/|')"
	;;
    esac

    args="${args} '${i}'"
done

eval "exec perl $args"