[109845] trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl

jeremyhu at macports.org jeremyhu at macports.org
Tue Aug 20 10:20:32 PDT 2013


Revision: 109845
          https://trac.macports.org/changeset/109845
Author:   jeremyhu at macports.org
Date:     2013-08-20 10:20:31 -0700 (Tue, 20 Aug 2013)
Log Message:
-----------
muniversal: Simplify compressed emacs lisp handling

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2013-08-20 17:15:19 UTC (rev 109844)
+++ trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl	2013-08-20 17:20:31 UTC (rev 109845)
@@ -610,6 +610,13 @@
                                             ui_debug "universal: merge: ${prefixDir}/${fl} differs in ${base1} and ${base2}; assume trivial difference"
                                             copy ${dir1}/${fl} ${dir}
                                         }
+                                        *.el.gz -
+                                        *.el.bz2 {
+                                            # Emacs lisp files should be same across architectures
+                                            # the emacs package (and perhaps others) records the date of automatically generated el files
+                                            ui_debug "universal: merge: ${prefixDir}/${fl} differs in ${base1} and ${base2}; assume trivial difference"
+                                            copy ${dir1}/${fl} ${dir}
+                                        }
                                         *.gz -
                                         *.bz2 {
                                             # compressed files can differ due to entropy
@@ -626,26 +633,13 @@
                                             set tempfile2 "${tempdir}/${arch2}-[file rootname ${fl}]"
                                             system "${cat} \"${dir1}/${fl}\" > \"${tempfile1}\""
                                             system "${cat} \"${dir2}/${fl}\" > \"${tempfile2}\""
-                                            set identical "no"
                                             if { ! [catch {system "/usr/bin/cmp -s \"${tempfile1}\" \"${tempfile2}\""}] } {
                                                 # files are identical
                                                 ui_debug "universal: merge: ${prefixDir}/${fl} differs in ${base1} and ${base2} but the contents are the same"
-                                                set identical "yes"
                                                 copy ${dir1}/${fl} ${dir}
-                                            }
-                                            if { ${identical}=="no" } {
-                                                switch -glob ${fl} {
-                                                    *.el.gz {
-                                                        # Emacs lisp files should be same across architectures
-                                                        # the emacs package (and perhaps others) records the date of automatically generated el files
-                                                        ui_debug "universal: merge: ${prefixDir}/${fl} differs in ${base1} and ${base2}; assume trivial difference"
-                                                        set identical "yes"
-                                                        copy ${dir1}/${fl} ${dir}
-                                                    }
-                                                }
-                                            }
-                                            delete ${tempfile1} ${tempfile2} ${tempdir}
-                                            if {${identical}=="no"} {
+                                                delete ${tempfile1} ${tempfile2} ${tempdir}
+                                            } else {
+                                                delete ${tempfile1} ${tempfile2} ${tempdir}
                                                 return -code error "${prefixDir}/${fl} differs in ${base1} and ${base2} and cannot be merged"
                                             }
                                         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130820/134b5567/attachment.html>


More information about the macports-changes mailing list