[racket] using raco setup to create systemwide commands

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jan 16 11:34:01 EST 2013

At Wed, 16 Jan 2013 10:30:29 -0500, Curtis Dutton wrote:
> I'm working on a small utility to help me backup virtual guest disks over
> slow links. I'll make an announcement about it once I get it to beta state.
> 
> I would really like to make it a one line command to install to the system.
> 
> So far I'm able to install it like so....
> 
> 1. raco link -i /usr/local/guest-lvm-backup
> 2. raco setup -l guest-lvm-backup
>      raco setup creates launchers in the racket install directory named
> guest-lvm-backup and guest-lvm-tape
> 
> 3. I install symbolic links to /usr/local/bin for my commands
> guest-lvm-backup and guest-lvm-tape
> 
> So my question is.... How do I get raco setup to create the links to the
> launchers in /usr/local/bin?

You can specify an installation action in an "info.rkt" file via
`install-collection', `pre-install-collection', or
`post-install-collection':

  http://docs.racket-lang.org/raco/running.html#(part._setup-info)


Posted on the users mailing list.