[25924] branches/dp2mp-move/base/Makefile.in

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 6 10:25:37 PDT 2007


Revision: 25924
          http://trac.macosforge.org/projects/macports/changeset/25924
Author:   jmpp at macports.org
Date:     2007-06-06 10:25:36 -0700 (Wed, 06 Jun 2007)

Log Message:
-----------

A ".old" backup suffix for receipts is lame at best, so lets be a bit more formal and use .mpsaved as I'm already using when backing up the conf files.
Also, only update the receipts if they haven't been updated already (that is, if no receipt.bz2.mpsaved file is found).

Modified Paths:
--------------
    branches/dp2mp-move/base/Makefile.in

Modified: branches/dp2mp-move/base/Makefile.in
===================================================================
--- branches/dp2mp-move/base/Makefile.in	2007-06-06 14:00:45 UTC (rev 25923)
+++ branches/dp2mp-move/base/Makefile.in	2007-06-06 17:25:36 UTC (rev 25924)
@@ -60,8 +60,8 @@
 	[ ! -f ${prefix}/share/man/man5/ports.conf.5 ] || rm -f ${prefix}/share/man/man5/ports.conf.5
 
 # Open up receipts and upgrade any paths in them containing old conventions to the new namespace:
-	for receipt in ${localstatedir}/macports/receipts/*/*/receipt.bz2 ; do [ ! -f $${receipt} ] || { \
-		cp -v $${receipt} $${receipt}.old && { \
+	for receipt in ${localstatedir}/macports/receipts/*/*/receipt.bz2 ; do [ ! \( -f $${receipt} -a ! -f $${receipt}.mpsaved \) ] || { \
+		cp -v $${receipt} $${receipt}.mpsaved && { \
 			$(BZIP2) -q -dc $${receipt} | sed 's/db\/dports/macports/g' | $(BZIP2) -q -zf > $${receipt}.new ; \
 		} && mv -v $${receipt}.new $${receipt} ; \
 	}; done
@@ -109,6 +109,8 @@
 
 #something more?
 
+# Trailing new line to signal the uprade procedure is done!
+	echo -e \n
 
 ####
 # NOTES:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070606/6b969061/attachment.html


More information about the macports-changes mailing list