dt-demo script
David Wolever
wolever at cs.toronto.edu
Sat Jul 5 19:16:36 PDT 2008
On 5-Jul-08, at 6:04 PM, Vlad Skvortsov wrote:
> David Wolever wrote:
>> One of the things that turned me onto Roundup was the 'roundup-
>> demo' script which, in one command, creates a fake environment and
>> starts up a server so you can see exactly what it's like.
> Hmm, yes, that might be helpful to some users, I think. However,
> may be we should make dt-createdb script more intelligent or
> interactive (optionally), so that most of the stuff is filled up
> automatically?
mmm making dt-createdb is probably a good idea :)
The reason I like the explicit `dt-demo` script is that's it's
obvious the second you see the output of `ls` -- no reading READMEs
or anything of the like.
I suppose that dt-createdb could play the same role, though, if it
had a message like "To get going quickly, run `dt-createdb --demo`
for a demo." when it's run with no arguments.
Either or -- just so long as it's really, really obvious :)
>> I've written something similar for dt (attached).
> Btw, the $PATH won't actually be updated by the script, since the
> current shell terminates and it can't affect the environment of the
> parent process.
Darn... That's right, because ~/.profile is sourced, not executed :(
> You might just print instructions (exact command) to user to update
> the path (however, it's shell-dependent...)
I would think it's safe to assume that, if you aren't running ksh,
bash, sh, zsh or (I think) csh (PATH="`pwd`:$PATH" works in all of
those) you've changed the shell, in which case you're smart enough to
update $PATH without help...
More information about the Dev
mailing list