[plt-scheme] testing scrbl work-in-progress in local svn area
On Feb 10, 2008, at 08:27, Matthew Flatt wrote:
> cd /tmp
> mkdir doc-collects
> ln -s ~/test/plt/plt/collects/parser-tools doc-collects/doc-parser-
> tools
> PLTCOLLECTS=":/tmp/doc-collects" setup-plt
I modified this a little. Your solution worked, but I wanted the
resulting HTML to end up in /usr/local/plt/doc/parser-tools/.
#!/bin/bash
# setup-my-scribble
#
# There are symlinks:
# from $DOCLINK/doc-MODULENAME
# to $DOCTEST/MODULENAME
# so that my scribble changes have a distinct name.
DOCTEST=/Users/gknauth/test/plt/plt/collects
DOCLINK=/Users/gknauth/test/plt/projects/doc-collects
DOCREAL=/usr/local/plt/doc
MYSYNC="parser-tools"
PLTCOLLECTS=":$DOCLINK" setup-plt
for c in $MYSYNC; do
rsync -az $DOCTEST/$c/doc/$c $DOCREAL/
done
# === EXAMPLE ===
# This last rsync operation copies these files:
#
# /Users/gknauth/test/plt/plt/collects/parser-tools/doc/parser-tools:
# -rw-r--r-- 1 gknauth staff 22 Feb 10 15:03 in.sxref
# -rw-r--r-- 1 gknauth staff 1232 Feb 10 15:03 index.html
# -rw-r--r-- 1 gknauth staff 1132 Feb 10 15:03 out.sxref
# -rw-r--r-- 1 gknauth staff 6000 Feb 10 15:03 scribble.css
#
# to this location:
#
# /usr/local/plt/doc/parser-tools:
# -rw-r--r-- 1 gknauth wheel 22 Feb 10 00:43 in.sxref
# -rw-r--r-- 1 gknauth wheel 1175 Feb 10 00:43 index.html
# -rw-r--r-- 1 gknauth wheel 956 Feb 10 00:40 out.sxref
#
# I do the rsync because--notice the timestamps--the symlink trick for
# rebuilding my local scribble changes, while it mosted worked,
# updated:
#
# /usr/local/plt/doc:
# -rw-r--r-- 1 gknauth wheel 3439 Feb 10 15:16 in.sxref
# -rw-r--r-- 1 gknauth wheel 6907 Feb 10 15:16 index.html
# -rw-r--r-- 1 gknauth wheel 962 Feb 10 15:16 out.sxref
#
# but left the files in /usr/local/plt/doc/parser-tools as they were.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080210/09ab8007/attachment.html>