Home | History | Annotate | Download | only in awk

Lines Matching full:cygwin

20 # 'cygwin-to-host-path' that will transform a Cygwin-specific path into the
23 # $(call cygwin-to-host-path,/cygdrive/c/Stuff/) --> c:/Stuff
27 # cygwin-to-host-path = $(shell cygpath -m $1)
33 # The script expects its input to be the output of the Cygwin "mount" command
36 # C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
37 # C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
38 # C:/cygwin on / type ntfs (binary,auto)
45 # $(patsubst /%,C:/cygwin/,
46 # $(patsubst /usr/bin/%,C:/cygwin/bin/,
47 # $(patsubst /usr/lib/%,C:/cygwin/lib/,
59 # record a new (host-path,cygwin-path) pair
62 cygwin[count] = $3
81 # If the cygwin path ends in /<lo>, then substitute it with /<up>
83 if (match(cygwin[nn],"/"lo"$")) {
86 cygwin[count] = substr(cygwin[nn],1,length(cygwin[nn])-1) up
90 # If the cygwin path ends in /<up>, then substitute it with /<lo>
92 if (match(cygwin[nn],"/"up"$")) {
95 cygwin[count] = substr(cygwin[nn],1,length(cygwin[nn])-1) lo
100 # We have recorded all (host,cygwin) path pairs,
101 # now try to sort them so that the ones with the longest cygwin path
105 if (length(cygwin[jj]) > length(cygwin[jj+1])) {
108 if (length(cygwin[jj]) == length(cygwin[jj+1]) &&
109 cygwin[jj] > cygwin[jj+1]) {
112 tmp = cygwin[jj]
113 cygwin[jj] = cygwin[jj+1]
114 cygwin[jj+1] = tmp
129 printf( "$(info %s => %s)", cygwin[nn], host[nn]);
134 add_drive_rule(host[nn], cygwin[nn])