summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-13 15:42:03 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-11-29 18:15:37 -0500
commit4408cd8cf638c786338ed1123f93fc1e4dc67279 (patch)
tree3d64d8c1317443cd839ad521591074c7201b4fc8
parentb7baff2c2bd86402d2645828af30d2f46bd68edb (diff)
xbs: internationalize
-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() {