From 8430aec80c4f528d9fb161c801e946d695611f3f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 1 Jun 2013 20:55:39 -0600 Subject: librerelease: format usage() to be consistent also, use print(), which has gettext support built in --- src/abslibre-tools/librerelease | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index 8ba8741..09f2119 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -3,21 +3,20 @@ # Uploads packages into [staging] # Copyright 2010 Nicolás Reynolds - -# ---------- GNU General Public License 3 ---------- - +# Copyright 2013 Luke Shumaker +# # This file is part of Parabola. - +# # Parabola is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. - +# # Parabola is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. - +# # You should have received a copy of the GNU General Public License # along with Parabola. If not, see . @@ -29,16 +28,16 @@ check_vars libretools WORKDIR PARABOLAHOST LIBREDESTDIR SIGID || exit 1 #check_vars libretools SIGEXT HOOKPRERELEASE || exit 1 function usage { - echo "$(gettext "Usage: $0")" + print "Usage: %s [OPTIONS]" "${0##*/}" echo - echo "$(gettext "This script uploads packages on $WORKDIR/stagging")" - echo "$(gettext "to parabola server.")" + print "This script uploads packages on $WORKDIR/stagging" + print "to parabola server." echo - echo "$(gettext "OPTIONS:")" - echo "$(gettext " -h this message.")" - echo "$(gettext " -l only list packages but not upload them.")" - echo "$(gettext " -c clean packages on $WORKDIR/staging.")" - echo "$(gettext " -n dry-run")" + print "Options:" + print " -c Clean packages on $WORKDIR/staging" + print " -l Only list packages but not upload them" + print " -n Dry-run; don't actually do anything" + print " -h Show this message" } function list_packages { -- cgit v1.2.2