Some cleanups to "script.html".

Closes PR 12464.
This commit is contained in:
Eli Barzilay 2012-04-18 10:15:44 -04:00
parent 659ff05143
commit e2e2a1e3e1

View File

@ -46,7 +46,7 @@
for your platform, for your platform,
@~ download the @tt{racket-...-full.tgz} file, @~ download the @tt{racket-...-full.tgz} file,
@~ unpack it with GNU Tar (or something compatible to it), for @~ unpack it with GNU Tar (or something compatible to it), for
example: "@tt{tar xzf plt-...-full.tgz}".} example: "@tt{tar xzf racket-...-full.tgz}".}
Note that there are many other @tt{tgz} files that contain various Note that there are many other @tt{tgz} files that contain various
subsets of the tree, for example, you can get just the documentation subsets of the tree, for example, you can get just the documentation
part, the clean @tt{plt/src} part, the full tree before any compilation, part, the clean @tt{plt/src} part, the full tree before any compilation,
@ -163,30 +163,23 @@
@pre*{ @pre*{
cd $BASE cd $BASE
rm -rf racket rm -rf racket
curl @url{racket-src.tgz} | tar xzf -} curl @url{racket-clean-tree.tgz} | tar xzf -}
@~ @~
This is possible with any of the subsets that are packed as tgz files. This is possible with any of the subsets that are packed as tgz files.
For example, to update just the documentation, do this: For example, to update just the binaries for OS X (over an existing
@tt{racket} tree):
@pre*{ @pre*{
cd $BASE cd $BASE
wget @url{docs/racket-docs.tgz} -O - | tar xzf -} wget @url{binaries/i386-osx-mac/racket-i386-osx-mac-binaries.tgz} -O - \
(Note that it is not necessary to remove the previous tree for this.) || tar xzf -}
@~ To get a fully built tree for Windows:
To update the binaries for Linux (over an existing @tt{racket} tree):
@pre*{ @pre*{
cd $BASE cd $BASE
rm -rf racket rm -rf racket
wget @url{binaries/i386-linux/racket-i386-linux-binaries.tgz} -O - \ wget @url{binaries/i386-win32/racket-i386-win32-full.tgz} -O - \
|| tar xzf - || tar xzf -
cd racket} cd racket}
To get a fully built tree for Solaris: Note that there is no “install” step: the archive contains a ready-to-run
@pre*{
cd $BASE
rm -rf racket
wget @url{binaries/sparc-solaris/racket-sparc-solaris-full.tgz} -O - \
|| tar xzf -
cd racket}
Note that there is no "install" step: the archive contains a ready-to-run
tree. tree.
@~ @~
Finally, there is a @tt{stamp} file in the nightly build directory that Finally, there is a @tt{stamp} file in the nightly build directory that
@ -195,7 +188,7 @@
the same and not fool you into getting the same build. To demonstrate the same and not fool you into getting the same build. To demonstrate
using this, here is an @tt{sh} script that compares a local copy of the using this, here is an @tt{sh} script that compares a local copy of the
@tt{stamp} file to the one on the web, and if there is any difference, @tt{stamp} file to the one on the web, and if there is any difference,
retrieves and installs the new full FreeBSD build (assuming it is in my retrieves and installs the new full Windows build (assuming it is in my
home directory): home directory):
@pre*{ @pre*{
#!/bin/sh #!/bin/sh
@ -206,7 +199,7 @@
curl -s $URL/stamp > stamp # remember the new stamp curl -s $URL/stamp > stamp # remember the new stamp
#---------- #----------
rm -rf racket rm -rf racket
wget $URL/binaries/i386-freebsd/racket-i386-freebsd-full.tgz -O - @; wget $URL/binaries/i386-win32/racket-i386-win32-full.tgz -O - @;
| tar xzf - | tar xzf -
#---------- #----------
fi} fi}
@ -264,7 +257,7 @@
#---------- #----------
mkdir "$MAINDIR/racket-temp-$$" mkdir "$MAINDIR/racket-temp-$$"
cd "$MAINDIR/racket-temp-$$" cd "$MAINDIR/racket-temp-$$"
wget "$URL/binaries/i386-linux/racket-i386-linux-full.tgz" -O - \ wget "$URL/binaries/i386-win32/racket-i386-win32-full.tgz" -O - \
| tar xzf - \ | tar xzf - \
|| exit 1 || exit 1
cd "$MAINDIR" cd "$MAINDIR"