diff options
Diffstat (limited to 'src/lib/librexgettext')
-rwxr-xr-x | src/lib/librexgettext | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/librexgettext b/src/lib/librexgettext index a4f2eb9..cc18999 100755 --- a/src/lib/librexgettext +++ b/src/lib/librexgettext @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Copyright (C) 2013-2016 Luke Shumaker <lukeshu@sbcglobal.net> +# Copyright (C) 2013-2017 Luke Shumaker <lukeshu@sbcglobal.net> # # License: GNU GPLv2+ # @@ -16,6 +16,10 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +# NB: During normal operation (i.e. not printing `usage()`) text, we +# don't use librelib. This is important as we need to be able to run +# this program statically in-place when building libretools. + export TEXTDOMAIN='librelib' export TEXTDOMAINDIR='/usr/share/locale' @@ -196,7 +200,7 @@ main() { --prose) i+=1; prose+=(--keyword="${!i}");; --prose=*) prose+=(--keyword="${!i#*=}");; -k) use_defaults=false;; - --help|-h) usage; return 0;; + --help|-h) usage; return 0;; # $EXIT_SUCCESS --) i+=1; break;; -*) errusage "unrecognized option: %s" "${!i}"; error=true;; *) files+=("${!i}");; @@ -208,7 +212,7 @@ main() { error=true fi if "$error"; then - return 1 + return 1 # $EXIT_FAILURE fi if "$use_defaults"; then simple+=("${default_simple[@]}") |