summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/xbs/xbs37
1 files changed, 22 insertions, 15 deletions
diff --git a/src/xbs/xbs b/src/xbs/xbs
index 099e1a1..7673b35 100755
--- a/src/xbs/xbs
+++ b/src/xbs/xbs
@@ -30,25 +30,32 @@ usage() {
print 'Usage: %s [-b SYSTEM|-h] COMMAND [ARGUMENTS]' "${0##*/}"
print 'Tool for working with arbitrary ABS-like build systems'
echo
- print 'This is a pluggable tool. The BUILDSYSTEM it uses is configured in:'
- print ' - /etc/xbs.conf'
- print ' - ${XDG_CONFIG_HOME}/xbs.conf'
- print ' - with the `-b` flag'
- print 'Later items take precidence over earlier ones.'
- print 'It looks for a helper program at `/lib/xbs/helper-${BUILDSYSTEM}`.'
+ prose 'This is a pluggable tool. The BUILDSYSTEM it uses is configured in:'
+ bullet '/etc/xbs.conf'
+ bullet '${XDG_CONFIG_HOME}/xbs.conf'
+ bullet 'with the `-b` flag'
+ prose 'Later items take precidence over earlier ones.'
+ echo
+ prose 'It looks for a helper program at `/lib/xbs/helper-${BUILDSYSTEM}`.'
echo
print 'Options:'
- print ' -b BUILDSYSTEM Use BUILDSYSTEM instead of the'
- print ' BUILDSYSTEM configured in xbs.conf'
- print ' -h Show this message'
+ flag "-b $(_ BUILDSYSTEM)" 'BUILDSYSTEM instead of the one configured in
+ xbs.conf'
+ flag '-h' 'Show this message'
echo
print 'Commands:'
- print ' status Are there uncommited changes in `.`?'
- print ' download Download or update the tree'
- print ' release REPO ARCH Release `.`'
- print ' unrelease PKGBASE REPO ARCH Unrelease'
- print ' move FROMREPO TOREPO PKGBASE'
- print ' releasepath PKGBASE REPO ARCH Path to staged version'
+ flag 'status' \
+ 'Are there uncommited changes in `.`?'
+ flag 'download' \
+ 'Download or update the tree'
+ flag "release $(_ 'REPO ARCH')" \
+ 'Release `.`'
+ flag "unrelease $(_ 'PKGBASE REPO ARCH')" \
+ 'Unrelease a pkgbase'
+ flag "move $(_ 'FROMREPO TOREPO PKGBASE')" \
+ 'Move a pkgbase from one repo to another'
+ flag "releasepath $(_ 'PKGBASE REPO ARCH')" \
+ 'Print the path to the staged version of pkgbase'
}
status() {