diff options
author | rangansen%netscape.com <devnull@localhost> | 2003-05-12 18:21:55 +0000 |
---|---|---|
committer | rangansen%netscape.com <devnull@localhost> | 2003-05-12 18:21:55 +0000 |
commit | 6cb498e2fd06b1636f19ffe7cc3e38e1d2b6db75 (patch) | |
tree | 485478d185ad641eb2b617f948a19573f68b2571 | |
parent | 5f622d5c13215a1796260a2d77cae3f75ad80c2f (diff) | |
download | nspr-hg-6cb498e2fd06b1636f19ffe7cc3e38e1d2b6db75.tar.gz |
Bug 618091 - changes for photon to use static build of gecko. Patch by seawood. Tested by rangansen
-rwxr-xr-x | build/cygwin-wrapper | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build/cygwin-wrapper b/build/cygwin-wrapper index c510a7d7..3da3c508 100755 --- a/build/cygwin-wrapper +++ b/build/cygwin-wrapper @@ -7,11 +7,17 @@ shift if test -z "$prog"; then exit 0 fi +mountpoint=`mount -p | awk '{ if (/^\//) { print $1; exit } }'` +if test -z "$mountpoint"; then + print "Cannot determine cygwin mount points. Exiting" + exit 1 +fi +mountpoint=`echo $mountpoint | sed 's|/$||'` if test "$prog" = "-up"; then prog=$1 shift - args=`echo $* | sed -e 's|-I\(.\):|-I/cygdrive/\1|g;'` + args=`echo $* | sed -e "s|-I\([a-zA-Z]\):/|-I${mountpoint}/\1/|g;"` else - args=`echo $* | sed -e 's|/cygdrive/\(.\)/|\1:/|g;'` + args=`echo $* | sed -e "s|${mountpoint}/\([a-zA-Z]\)/|\1:/|g;"` fi exec $prog $args |