<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 10, 2008, at 08:27, Matthew Flatt wrote:</div><blockquote type="cite">cd /tmp<br> mkdir doc-collects<br> ln -s ~/test/plt/plt/collects/parser-tools doc-collects/doc-parser-tools<br> PLTCOLLECTS=":/tmp/doc-collects" setup-plt<br></blockquote><br></div><div>I modified this a little. &nbsp;Your solution worked, but I wanted the resulting HTML to end up in&nbsp;/usr/local/plt/doc/parser-tools/.</div><div><br class="webkit-block-placeholder"></div><div><div><font class="Apple-style-span" face="Courier">#!/bin/bash</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier"># setup-my-scribble</font></div><div><font class="Apple-style-span" face="Courier">#</font></div><div><font class="Apple-style-span" face="Courier"># There are symlinks:</font></div><div><font class="Apple-style-span" face="Courier"># &nbsp;from &nbsp;$DOCLINK/doc-MODULENAME</font></div><div><font class="Apple-style-span" face="Courier"># &nbsp; &nbsp;to &nbsp;$DOCTEST/MODULENAME</font></div><div><font class="Apple-style-span" face="Courier"># so that my scribble changes have a distinct name.</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">DOCTEST=/Users/gknauth/test/plt/plt/collects</font></div><div><font class="Apple-style-span" face="Courier">DOCLINK=/Users/gknauth/test/plt/projects/doc-collects</font></div><div><font class="Apple-style-span" face="Courier">DOCREAL=/usr/local/plt/doc</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">MYSYNC="parser-tools"</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><span class="Apple-style-span" style="font-family: Courier; ">PLTCOLLECTS=":$DOCLINK" setup-plt</span></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier">for c in $MYSYNC; do</font></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp;rsync -az $DOCTEST/$c/doc/$c $DOCREAL/</font></div><div><font class="Apple-style-span" face="Courier">done</font></div><div><font class="Apple-style-span" face="Courier"><br></font></div><div><font class="Apple-style-span" face="Courier"># === EXAMPLE ===</font></div><div><font class="Apple-style-span" face="Courier"># This last rsync operation copies these files:</font></div><div><font class="Apple-style-span" face="Courier">#</font></div><div><font class="Apple-style-span" face="Courier"># /Users/gknauth/test/plt/plt/collects/parser-tools/doc/parser-tools:</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp;1 gknauth &nbsp;staff &nbsp; &nbsp;22 Feb 10 15:03 in.sxref</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp;1 gknauth &nbsp;staff &nbsp;1232 Feb 10 15:03 index.html</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp;1 gknauth &nbsp;staff &nbsp;1132 Feb 10 15:03 out.sxref</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp;1 gknauth &nbsp;staff &nbsp;6000 Feb 10 15:03 scribble.css</font></div><div><font class="Apple-style-span" face="Courier">#</font></div><div><font class="Apple-style-span" face="Courier"># to this location:</font></div><div><font class="Apple-style-span" face="Courier">#</font></div><div><font class="Apple-style-span" face="Courier"># /usr/local/plt/doc/parser-tools:</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp; 1 gknauth &nbsp;wheel &nbsp; &nbsp;22 Feb 10 00:43 in.sxref</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp; 1 gknauth &nbsp;wheel &nbsp;1175 Feb 10 00:43 index.html</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp; 1 gknauth &nbsp;wheel &nbsp; 956 Feb 10 00:40 out.sxref</font></div><div><font class="Apple-style-span" face="Courier">#</font></div><div><font class="Apple-style-span" face="Courier"># I do the rsync because--notice the timestamps--the symlink trick for</font></div><div><font class="Apple-style-span" face="Courier"># rebuilding my local scribble changes, while it mosted worked,</font></div><div><font class="Apple-style-span" face="Courier"># updated:</font></div><div><font class="Apple-style-span" face="Courier">#</font></div><div><font class="Apple-style-span" face="Courier"># /usr/local/plt/doc:</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp; &nbsp;1 gknauth &nbsp;wheel &nbsp;3439 Feb 10 15:16 in.sxref</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp; &nbsp;1 gknauth &nbsp;wheel &nbsp;6907 Feb 10 15:16 index.html</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- &nbsp; &nbsp;1 gknauth &nbsp;wheel &nbsp; 962 Feb 10 15:16 out.sxref</font></div><div><font class="Apple-style-span" face="Courier">#</font></div><div><font class="Apple-style-span" face="Courier"># but left the files in /usr/local/plt/doc/parser-tools as they were.</font></div><br></div></body></html>