From 78ae6d3beaf2c76d7db848c79dfc5d23f579ba52 Mon Sep 17 00:00:00 2001 From: axel Date: Sat, 28 Jan 2006 12:18:46 +1000 Subject: [PATCH] Check for gettext in seq fallback implementation darcs-hash:20060128021846-ac50b-7c11eea694e5c3b87e00508fbeaedc9dcd163726.gz --- seq.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/seq.in b/seq.in index bde7241c7..14598778d 100755 --- a/seq.in +++ b/seq.in @@ -4,6 +4,16 @@ set -l from 1 set -l step 1 set -l to 1 +if test 1 = "@HAVE_GETTEXT@"; and which gettext >/dev/null ^/dev/null + function _ -d "Alias for the gettext command" + gettext fish $argv + end +else + function _ -d "Alias for the gettext command" + printf "%s" $argv + end +end + switch (count $argv) case 1 set to $argv[1]