summaryrefslogtreecommitdiff
path: root/src/abslibre-tools/diff-unfree
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-21 15:17:46 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-21 15:17:46 -0400
commit745d32b1aa0b36ed74b8a34ff4d6843b51f7b9f0 (patch)
treef8ff7a8bf923f82781b9b7c080734df86a14094c /src/abslibre-tools/diff-unfree
parent93164e46342883e70e84688ae7252cbce47e4281 (diff)
abslibre-tools: internationalize
Diffstat (limited to 'src/abslibre-tools/diff-unfree')
-rwxr-xr-xsrc/abslibre-tools/diff-unfree16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/abslibre-tools/diff-unfree b/src/abslibre-tools/diff-unfree
index 59fcbae..b143a99 100755
--- a/src/abslibre-tools/diff-unfree
+++ b/src/abslibre-tools/diff-unfree
@@ -25,14 +25,12 @@
load_files libretools
check_vars libretools DIFFTOOL || exit 1
-cmd=${0##*/}
-
usage() {
- echo "Usage: $cmd [community|packages] [unfree-package] [repo]"
- echo "Usage: $cmd --help"
- echo "Helps you diff build scripts from ABSLibre against (Unfree) ABS."
- echo ""
- echo "Package name and repo will we guessed if you don't specify them."
+ print "Usage: %s [community|packages] [unfree-package] [repo]" "${0##*/}"
+ print "Usage: %s --help" "${0##*/}"
+ prose "Helps you diff build scripts from ABSLibre against (Unfree) ABS."
+ echo
+ prose "Package name and repo will we guessed if you don't specify them."
}
main() {
@@ -68,7 +66,7 @@ main() {
pushd "${tmp_dir}" &>/dev/null
- msg "Getting diff from $repo/$package..."
+ msg "Getting diff from %s..." "$repo/$package"
svn checkout --depth=empty svn://svn.archlinux.org/$svnrepo &>/dev/null
@@ -81,7 +79,7 @@ main() {
msg "Diffing files"
for _file in ${unfree_dir}/*; do
- msg2 "$(basename "${_file}")"
+ msg2 "%s" "$(basename "${_file}")"
${DIFFTOOL} "$PWD/$(basename "${_file}")" "${_file}"
done
}