summaryrefslogtreecommitdiff
path: root/src/is_built
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-11-03 13:17:46 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-11-03 13:17:46 -0500
commita9f812439059c7f6b4d631fcf02fc2c7a7200172 (patch)
treeb576dbd950e0bd0b6a195f4fd448207eb613fb4c /src/is_built
parent7dbe6410f501a748759866cab89253c799001c57 (diff)
aur, is_built: internationalize usage()
Diffstat (limited to 'src/is_built')
-rwxr-xr-xsrc/is_built19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/is_built b/src/is_built
index 80d0719..6def815 100755
--- a/src/is_built
+++ b/src/is_built
@@ -1,18 +1,19 @@
#!/usr/bin/env bash
-cmd=${0##*/}
usage() {
- echo "Usage: $cmd [-h] pkgname [pkgver]"
+ print "Usage: %s [-h] PKGNAME [PKGVER]" "${0##*/}" "${0##*/}"
+ print 'Detect iv a given package (version) is already in the repos'
echo
- echo "Detect if a given package version is already in repos"
- echo "Assuming you want greater or equal."
+ prose "If a version is specified, it assumedx that you want a greater or
+ equal version."
echo
- echo "Example usage: $cmd 'pcre' '20'"
+ prose "Example usage:"
+ print " $ %s 'pcre' '20'" "${0##*/}"
echo
- echo "Exit status:"
- echo " 0: The package is built"
- echo " 1: The package has not built"
- echo " >1: There was an error"
+ print "Exit status:"
+ print " 0: The package is built"
+ print " 1: The package has not built"
+ print " >1: There was an error"
}
while getopts 'h' arg; do