[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
add guile-tools?
From: |
thi |
Subject: |
add guile-tools? |
Date: |
Mon, 30 Apr 2001 20:02:57 -0700 |
below is a quick and dirty wrapper that i use personally. it might be
useful to be included in the guile distribution and installed as
$bindir/guile-tools, so if nobody objects, i will spiff it up (convert
to use configure-substituted vars, add --help and --version handling,
add comments, maybe rewrite in scheme, etc) and check it in.
on the other hand, i can see people not liking the further pollution of
$bindir or having other objections, in which case i would just append it
as a "serving suggestion" in scripts/README...
example usages: guile-tools --version
guile-tools --help
guile-tools --help display-commentary
guile-tools display-commentary *.scm
guile-tools punify *.scm
please let me know what you think.
thi
__________________________________________
#!/bin/sh
ginfo="guile-config info"
bindir=${GUILE_TOOLS_DIR-`$ginfo pkgdatadir`/`$ginfo guileversion`/scripts}
program=$bindir/$1
shift
test ! -d $program -a -x $program || exit 1
exec $program "$@"
# guile-tools ends here