summaryrefslogtreecommitdiff
path: root/patches/src680/mozilla-build-cygpath.diff
blob: 9f9e6072669b44771a0ed27bd237e3ee50676309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
--- moz/mozilla-source-1.7.5.patch.orig	2005-10-17 16:24:13.000000000 +0200
+++ moz/mozilla-source-1.7.5.patch	2005-11-29 11:09:41.000000000 +0200
@@ -7134,3 +7134,86 @@
       // 'Dependent' means that params of this type are dependent upon other 
       // params. e.g. an T_INTERFACE_IS is dependent upon some other param at 
 
+*** misc/mozilla/build/cygwin-wrapper	Thu Oct 30 23:05:56 2003
+--- misc/build/mozilla/build/cygwin-wrapper	Tue Oct 18 14:52:06 2005
+***************
+*** 54,59 ****
+--- 54,68 ----
+                          eval 'no_mountpoint=${i#'${leader}${mountpoint}'/}'
+                          driveletter=${no_mountpoint%%/*}
+                          i=${leader}${driveletter}:/${pathname}
+                      fi
+                  fi
+              fi
+*** misc/mozilla/nsprpub/build/cygwin-wrapper	Thu Apr  3 01:22:38 2003
+--- misc/build/mozilla/nsprpub/build/cygwin-wrapper	Tue Oct 18 14:52:30 2005
+***************
+*** 18,23 ****
+     shift
+     args=`echo $* | sed -e "s|-I\([a-zA-Z]\):/|-I${mountpoint}/\1/|g;"`
+  else
+!    args=`echo $* | sed -e "s|${mountpoint}/\([a-zA-Z]\)/|\1:/|g;"`
+  fi
+  exec $prog $args
+--- 18,42 ----
+     shift
+     args=`echo $* | sed -e "s|-I\([a-zA-Z]\):/|-I${mountpoint}/\1/|g;"`
+  else
+!    for i in "${@}"
+!    do
+!       eval 'leader=${i%%'${mountpoint}'/[a-zA-Z]/*}'
+!       if ! test "${leader}" = "${i}"; then
+!           eval 'pathname=${i#'${leader}${mountpoint}'/[a-zA-Z]/}'
+!           eval 'no_mountpoint=${i#'${leader}${mountpoint}'/}'
+!           driveletter=${no_mountpoint%%/*}
+!           i=${leader}${driveletter}:/${pathname}
+!       else
+!           cygstylepath=${i#/[a-zA-Z]*}
+!           if ! test "${cygstylepath}" = "${i}"; then
+!               rootpath=${i#/}
+!               rootpath=/${rootpath%%/*}
+!               if [ -e $rootpath ]; then
+!                   i="`cygpath -ma "${i}"`"
+!               fi
+!           fi
+!       fi
+!       args="${args} ${i}"
+!    done
+  fi
+  exec $prog $args
+*** misc/mozilla/directory/c-sdk/config/cygwin-wrapper	Thu Apr  3 01:22:38 2003
+--- misc/build/mozilla/directory/c-sdk/config/cygwin-wrapper	Tue Oct 18 14:52:30 2005
+***************
+*** 18,23 ****
+     shift
+     args=`echo $* | sed -e "s|-I\([a-zA-Z]\):/|-I${mountpoint}/\1/|g;"`
+  else
+!    args=`echo $* | sed -e "s|${mountpoint}/\([a-zA-Z]\)/|\1:/|g;"`
+  fi
+  exec $prog $args
+--- 18,42 ----
+     shift
+     args=`echo $* | sed -e "s|-I\([a-zA-Z]\):/|-I${mountpoint}/\1/|g;"`
+  else
+!    for i in "${@}"
+!    do
+!       eval 'leader=${i%%'${mountpoint}'/[a-zA-Z]/*}'
+!       if ! test "${leader}" = "${i}"; then
+!           eval 'pathname=${i#'${leader}${mountpoint}'/[a-zA-Z]/}'
+!           eval 'no_mountpoint=${i#'${leader}${mountpoint}'/}'
+!           driveletter=${no_mountpoint%%/*}
+!           i=${leader}${driveletter}:/${pathname}
+!       else
+!           cygstylepath=${i#/[a-zA-Z]*}
+!           if ! test "${cygstylepath}" = "${i}"; then
+!               rootpath=${i#/}
+!               rootpath=/${rootpath%%/*}
+!               if [ -e $rootpath ]; then
+!                   i="`cygpath -ma "${i}"`"
+!               fi
+!           fi
+!       fi
+!       args="${args} ${i}"
+!    done
+  fi
+  exec $prog $args