Bug 618091 - changes for photon to use static build of gecko. Patch by seawood. Tested by rangansen ANGELON_MOZ12_BRANCH
authorrangansen%netscape.com
Mon, 12 May 2003 18:21:55 +0000
branchANGELON_MOZ12_BRANCH
changeset 2819 0822350ef7fb82e1502efe21a077831091deecf6
parent 2772 7e9a1d0c6a9adec28ea6d1308caa75501c8ae25a
child 2820 6573b028b9887c6d805c9e8a4708943a945ed212
child 2832 833293c306d89bcc165eb6d7ba423bd58415b5a4
push idunknown
push userunknown
push dateunknown
bugs618091
Bug 618091 - changes for photon to use static build of gecko. Patch by seawood. Tested by rangansen
build/cygwin-wrapper
--- a/build/cygwin-wrapper
+++ b/build/cygwin-wrapper
@@ -2,16 +2,22 @@
 #
 # Stupid wrapper to avoid win32 dospath/cygdrive issues
 #
 prog=$1
 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