diff options
author | blythe%netscape.com <devnull@localhost> | 2002-07-17 19:49:30 +0000 |
---|---|---|
committer | blythe%netscape.com <devnull@localhost> | 2002-07-17 19:49:30 +0000 |
commit | da10b26328020917332be0475388b5b17890545e (patch) | |
tree | 03e7b2fe710d6dcfb0f41f5d8d0cf7f92d80f6c9 | |
parent | 19990bc7fc369acc9af61c46acf6fc748e372212 (diff) | |
download | nspr-hg-da10b26328020917332be0475388b5b17890545e.tar.gz |
wince branch would like cygwin-wrapper too
-rwxr-xr-x | build/cygwin-wrapper | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/build/cygwin-wrapper b/build/cygwin-wrapper new file mode 100755 index 00000000..c510a7d7 --- /dev/null +++ b/build/cygwin-wrapper @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Stupid wrapper to avoid win32 dospath/cygdrive issues +# +prog=$1 +shift +if test -z "$prog"; then + exit 0 +fi +if test "$prog" = "-up"; then + prog=$1 + shift + args=`echo $* | sed -e 's|-I\(.\):|-I/cygdrive/\1|g;'` +else + args=`echo $* | sed -e 's|/cygdrive/\(.\)/|\1:/|g;'` +fi +exec $prog $args |