<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[25782] branches/dp2mp-move/base/Makefile.in</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.macosforge.org/projects/macports/changeset/25782">25782</a></dd>
<dt>Author</dt> <dd>jmpp@macports.org</dd>
<dt>Date</dt> <dd>2007-06-01 11:02:49 -0700 (Fri, 01 Jun 2007)</dd>
</dl>
<h3>Log Message</h3>
<pre>
Add sed rule to update dpupdate/base/ sources to the new trunk/base/ rsync module, taking into consideration that some
users might have written dpupdate/base without the trailing slash. Thanks to sfiera for both providing feedback on this
omission of mine and for helping me put the regex together to match trailing slash or not and replace both cases with
trunk/base/.
Tested upgrading a trunk based MP installation.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#branchesdp2mpmovebaseMakefilein">branches/dp2mp-move/base/Makefile.in</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchesdp2mpmovebaseMakefilein"></a>
<div class="modfile"><h4>Modified: branches/dp2mp-move/base/Makefile.in (25781 => 25782)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dp2mp-move/base/Makefile.in        2007-06-01 09:32:33 UTC (rev 25781)
+++ branches/dp2mp-move/base/Makefile.in        2007-06-01 18:02:49 UTC (rev 25782)
</span><span class="lines">@@ -71,9 +71,10 @@
</span><span class="cx"> ## 2) new default value for the portdbpath variable;
</span><span class="cx"> ## 3) new MacPorts rsync server;
</span><span class="cx"> ## 4) new default value for the base tree;
</span><del>-## 5) stray quotes are removed from the value of the rsync_options key in old conf files;
-## 6) references to the old ports.conf(5) man page are updated to the new macports.conf(5) page;
-## 7) finally, move remaining instances of any form of our new name (which by this time should only remain in comments, if at all) to our new name.
</del><ins>+## 5) new default value for trunk's base sources for users who have it (some do);
+## 6) stray quotes are removed from the value of the rsync_options key in old conf files;
+## 7) references to the old ports.conf(5) man page are updated to the new macports.conf(5) page;
+## 8) finally, move remaining instances of any form of our new name (which by this time should only remain in comments, if at all) to our new name.
</ins><span class="cx">         [ ! -f ${sysconfdir}/macports/macports.conf ] || { \
</span><span class="cx">                 [ -f ${sysconfdir}/macports/macports.conf.mpsaved ] || cp -v ${sysconfdir}/macports/macports.conf ${sysconfdir}/macports/macports.conf.mpsaved; \
</span><span class="cx">                 sed 's/etc\/ports/etc\/macports/g' ${sysconfdir}/macports/macports.conf > ${sysconfdir}/macports/macports.conf.tmp && \
</span><span class="lines">@@ -84,6 +85,8 @@
</span><span class="cx">                         mv -v ${sysconfdir}/macports/macports.conf.tmp ${sysconfdir}/macports/macports.conf; \
</span><span class="cx">                 sed 's/dpupdate1\/base/release\/base/g' ${sysconfdir}/macports/macports.conf > ${sysconfdir}/macports/macports.conf.tmp && \
</span><span class="cx">                         mv -v ${sysconfdir}/macports/macports.conf.tmp ${sysconfdir}/macports/macports.conf; \
</span><ins>+                sed 's/dpupdate\/base\/\{0,1\}/trunk\/base\//g' ${sysconfdir}/macports/macports.conf > ${sysconfdir}/macports/macports.conf.tmp && \
+                        mv -v ${sysconfdir}/macports/macports.conf.tmp ${sysconfdir}/macports/macports.conf; \
</ins><span class="cx">                 sed '/^rsync_options/s/"\(.*\)"/\1/' ${sysconfdir}/macports/macports.conf > ${sysconfdir}/macports/macports.conf.tmp && \
</span><span class="cx">                         mv -v ${sysconfdir}/macports/macports.conf.tmp ${sysconfdir}/macports/macports.conf; \
</span><span class="cx">                 sed 's/ ports.conf(5)/ macports.conf(5)/g' ${sysconfdir}/macports/macports.conf > ${sysconfdir}/macports/macports.conf.tmp && \
</span></span></pre>
</div>
</div>
</body>
</html>