summaryrefslogtreecommitdiff
path: root/src/abslibre-tools/diff-unfree
diff options
context:
space:
mode:
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 07f2ca2..b3e2327 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
}