Ticket #66163: patch-muniversal-ventura.diff
File patch-muniversal-ventura.diff, 2.9 KB (added by kencu (Ken), 2 years ago) |
---|
-
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/muniversal-1.1.tcl
old new 347 347 348 348 # merge ${base1}/${prefixDir} and ${base2}/${prefixDir} into dir ${base}/${prefixDir} 349 349 # arch1, arch2: names to prepend to files if a diff merge of two files is forbidden by merger_dont_diff 350 # merger_dont_diff: list of files for which / usr/bin/diff ${diffFormat} will not merge correctly350 # merger_dont_diff: list of files for which /opt/local/bin/gdiff ${diffFormat} will not merge correctly 351 351 # diffFormat: format used by diff to merge two text files 352 352 proc muniversal::merge {base1 base2 base prefixDir arch1 arch2 merger_dont_diff diffFormat} { 353 353 set dir1 ${base1}/${prefixDir} … … 424 424 425 425 ui_debug "universal: merge: created ${prefixDir}/${fl} to include ${prefixDir}/${arch1}-${fl} ${prefixDir}/${arch1}-${fl}" 426 426 427 system "/ usr/bin/diff -d ${diffFormat} \"${dir}/${arch1}-${fl}\" \"${dir}/${arch2}-${fl}\" > \"${dir}/${fl}\"; test \$? -le 1"427 system "/opt/local/bin/gdiff -d ${diffFormat} \"${dir}/${arch1}-${fl}\" \"${dir}/${arch2}-${fl}\" > \"${dir}/${fl}\"; test \$? -le 1" 428 428 429 429 copy -force ${dir1}/${fl} ${dir}/${arch1}-${fl} 430 430 copy -force ${dir2}/${fl} ${dir}/${arch2}-${fl} … … 531 531 if { ! [catch {system "test \"`head -c2 ${dir1}/${fl}`\" = '#!'"}] } { 532 532 # shell script, hopefully striping out arch flags works... 533 533 muniversal::strip_arch_flags ${dir1} ${dir2} ${dir} ${fl} 534 } elseif { ! [catch {system "/ usr/bin/diff -dw ${diffFormat} \"${dir1}/${fl}\" \"${dir2}/${fl}\" > \"${dir}/${fl}\"; test \$? -le 1"}] } {534 } elseif { ! [catch {system "/opt/local/bin/gdiff -dw ${diffFormat} \"${dir1}/${fl}\" \"${dir2}/${fl}\" > \"${dir}/${fl}\"; test \$? -le 1"}] } { 535 535 # diff worked 536 536 ui_debug "universal: merge: used diff to create ${prefixDir}/${fl}" 537 537 } else { … … 957 957 global workpath \ 958 958 muniversal.dont_diff 959 959 960 # / usr/bin/diff can merge two C/C++ files960 # /opt/local/bin/gdiff can merge two C/C++ files 961 961 # See https://www.gnu.org/software/diffutils/manual/html_mono/diff.html#If-then-else 962 962 # See https://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Detailed%20If-then-else 963 963 set diffFormatProc {--old-group-format='#if (defined(__ppc__) || defined(__ppc64__))