diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-01 20:55:39 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 20:01:05 -0600 |
commit | 8430aec80c4f528d9fb161c801e946d695611f3f (patch) | |
tree | 918619afa399a7a32a134b8f0398c4629c7fcb3a /src/abslibre-tools/librerelease | |
parent | 1340e50d4dfcf091ce33ace8da471da1ea9489fb (diff) |
librerelease: format usage() to be consistent
also, use print(), which has gettext support built in
Diffstat (limited to 'src/abslibre-tools/librerelease')
-rwxr-xr-x | src/abslibre-tools/librerelease | 27 |
1 files changed, 13 insertions, 14 deletions
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 <http://www.gnu.org/licenses/>. @@ -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 { |