<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. Your solution worked, but I wanted the resulting HTML to end up in /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"># from $DOCLINK/doc-MODULENAME</font></div><div><font class="Apple-style-span" face="Courier"># to $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"> 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-- 1 gknauth staff 22 Feb 10 15:03 in.sxref</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- 1 gknauth staff 1232 Feb 10 15:03 index.html</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- 1 gknauth staff 1132 Feb 10 15:03 out.sxref</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- 1 gknauth staff 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-- 1 gknauth wheel 22 Feb 10 00:43 in.sxref</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- 1 gknauth wheel 1175 Feb 10 00:43 index.html</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- 1 gknauth wheel 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-- 1 gknauth wheel 3439 Feb 10 15:16 in.sxref</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- 1 gknauth wheel 6907 Feb 10 15:16 index.html</font></div><div><font class="Apple-style-span" face="Courier"># -rw-r--r-- 1 gknauth wheel 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>