[plt-scheme] pack.ss

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Tue Apr 27 03:53:32 EDT 2004

This ought to be a FAQ.  In Schematics CVS, see
tools/make-plt.  It contains all I know about pack.ss.
 For the chronically lazy:

#! /usr/bin/mzscheme -qr
;; -*-Mode: scheme-*-
;; ./make-plt name version directory

;; Package directory into file name-version.plt

(require (lib "pack.ss" "setup")
         (lib "match.ss"))

(match argv
  [#(name version directory)
    (printf "Packaging ~a into ~a-~a.plt" directory
name version)
	(pack (string-append name
              (list directory)
              (list (list name))
  [_ (printf (string-append 
              "Usage: make-plt name version
              "  name is the name of the collection to
              "  version is the version number of the
              "  directory is where the code to be
packaged is found\n"
              "A file name-version.plt will be
              "Note: the file will be unpacked into
the same directory as that given in the directory
package above.  For this reason the directory must be
a subdirectory of collects.  I suggest making symlinks
from collects to your working directory.\n"))])

--- Matt <mcj4 at kent.ac.uk> wrote:

> I want to make a PLT file...

Email: noelwelsh <at> yahoo <dot> com
Jabber: noelw <at> jabber <dot> org

Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  

Posted on the users mailing list.