summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-08-23 01:03:57 +0000
committerwtc%netscape.com <devnull@localhost>2002-08-23 01:03:57 +0000
commit92c92d3e572edae43a5a3fe31f9a325477507f15 (patch)
tree19e3580344578ef2b14b8e674842550c0c8ece99 /build
parent0f57e3e299f82573e128bd1d848c2548b6dd422b (diff)
downloadnspr-hg-92c92d3e572edae43a5a3fe31f9a325477507f15.tar.gz
Added cygwin-wrapper to the tip. Bug 141834.
Diffstat (limited to 'build')
-rwxr-xr-xbuild/cygwin-wrapper17
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