<!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, #msg p { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul { 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>[31821] trunk/base/portmgr/jobs/mprsyncup</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.macosforge.org/projects/macports/changeset/31821">31821</a></dd>
<dt>Author</dt> <dd>wsiegrist@apple.com</dd>
<dt>Date</dt> <dd>2007-12-08 17:13:22 -0800 (Sat, 08 Dec 2007)</dd>
</dl>

<h3>Log Message</h3>
<pre>added pathed variables for mkdir, echo, and ln to complete the removal of any PATH assumptions.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbaseportmgrjobsmprsyncup">trunk/base/portmgr/jobs/mprsyncup</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbaseportmgrjobsmprsyncup"></a>
<div class="modfile"><h4>Modified: trunk/base/portmgr/jobs/mprsyncup (31820 => 31821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/base/portmgr/jobs/mprsyncup        2007-12-08 20:43:08 UTC (rev 31820)
+++ trunk/base/portmgr/jobs/mprsyncup        2007-12-09 01:13:22 UTC (rev 31821)
</span><span class="lines">@@ -35,6 +35,9 @@
</span><span class="cx"> SVN=&quot;/opt/local/bin/svn -q --non-interactive&quot;
</span><span class="cx"> RSYNC=&quot;/usr/bin/rsync -q&quot;
</span><span class="cx"> RM=&quot;/bin/rm&quot;
</span><ins>+MKDIR=&quot;/bin/mkdir&quot;
+ECHO=&quot;/bin/echo&quot;
+LN=&quot;/bin/ln&quot;
</ins><span class="cx"> 
</span><span class="cx"> # Paths we'll work on:
</span><span class="cx"> SVNROOT=/var/tmp/macports
</span><span class="lines">@@ -56,7 +59,7 @@
</span><span class="cx"> fi
</span><span class="cx"> ${SVN} export ${TBASE} ${TBASE}-export
</span><span class="cx"> if [ ! -d ${RSYNCROOT}/trunk/base ]; then
</span><del>-    mkdir -p ${RSYNCROOT}/trunk
</del><ins>+    ${MKDIR} -p ${RSYNCROOT}/trunk
</ins><span class="cx"> fi
</span><span class="cx"> ${RSYNC} -a -I --delete ${TBASE}-export/ ${RSYNCROOT}/trunk/base &amp;&amp; ${RM} -rf ${TBASE}-export
</span><span class="cx"> 
</span><span class="lines">@@ -64,7 +67,7 @@
</span><span class="cx"> # Read what tag we're releasing from, switch to/checkout a copy, export and rsync it to ${RSYNCROOT}/release/base:
</span><span class="cx"> read RELEASE_URL &lt; ${TBASE}/${RELEASE_URL_FILE}
</span><span class="cx"> if [ ! -n ${RELEASE_URL} ]; then
</span><del>-    echo &quot;no RELEASE_URL specified in svn trunk, baling out&quot;
</del><ins>+    ${ECHO} &quot;no RELEASE_URL specified in svn trunk, baling out&quot;
</ins><span class="cx">     exit 1
</span><span class="cx"> fi
</span><span class="cx"> if [ -d ${RBASE}/.svn ]; then
</span><span class="lines">@@ -74,7 +77,7 @@
</span><span class="cx"> fi
</span><span class="cx"> ${SVN} export ${RBASE} ${RBASE}-export
</span><span class="cx"> if [ ! -d ${RSYNCROOT}/release/base ]; then
</span><del>-    mkdir -p ${RSYNCROOT}/release/base
</del><ins>+    ${MKDIR} -p ${RSYNCROOT}/release/base
</ins><span class="cx"> fi
</span><span class="cx"> ${RSYNC} -a -I --delete ${RBASE}-export/ ${RSYNCROOT}/release/base &amp;&amp; ${RM} -rf ${RBASE}-export
</span><span class="cx"> 
</span><span class="lines">@@ -87,7 +90,7 @@
</span><span class="cx"> fi
</span><span class="cx"> ${SVN} export ${PORTS} ${PORTS}-export
</span><span class="cx"> if [ ! -d ${RSYNCROOT}/release/ports ]; then
</span><del>-    mkdir -p ${RSYNCROOT}/release/ports
</del><ins>+    ${MKDIR} -p ${RSYNCROOT}/release/ports
</ins><span class="cx"> fi
</span><span class="cx"> ${RSYNC} -a -I --delete ${PORTS}-export/ ${RSYNCROOT}/release/ports &amp;&amp; ${RM} -rf ${PORTS}-export
</span><span class="cx"> 
</span><span class="lines">@@ -95,12 +98,12 @@
</span><span class="cx"> # Compatibility checks:
</span><span class="cx"> cd ${RSYNCROOT}
</span><span class="cx"> if [ ! -h dpupdate ]; then
</span><del>-    ${RM} -rf dpupdate &amp;&amp; ln -s trunk dpupdate
</del><ins>+    ${RM} -rf dpupdate &amp;&amp; ${LN} -s trunk dpupdate
</ins><span class="cx"> fi
</span><span class="cx"> if [ ! -h dpupdate1 ]; then
</span><del>-    ${RM} -rf dpupdate1 &amp;&amp; ln -s release dpupdate1
</del><ins>+    ${RM} -rf dpupdate1 &amp;&amp; ${LN} -s release dpupdate1
</ins><span class="cx"> fi
</span><span class="cx"> if [ ! -h trunk/dports ]; then
</span><span class="cx">     cd trunk
</span><del>-    ${RM} -rf dports &amp;&amp; ln -s ../release/ports dports
</del><ins>+    ${RM} -rf dports &amp;&amp; ${LN} -s ../release/ports dports
</ins><span class="cx"> fi
</span></span></pre>
</div>
</div>

</body>
</html>