Mercurial > pidgin
comparison setup-gettext @ 10446:904d03bfccce
[gaim-migrate @ 11711]
Don't be quite so generous in assumptions about what sed can do
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Wed, 29 Dec 2004 20:01:48 +0000 |
parents | afd6b3185274 |
children | a09a5d64f33f |
comparison
equal
deleted
inserted
replaced
10445:958a4cbd2ef5 | 10446:904d03bfccce |
---|---|
24 VERSION=0.1.6 | 24 VERSION=0.1.6 |
25 | 25 |
26 VERBOSE=0 | 26 VERBOSE=0 |
27 | 27 |
28 parse_gettext_version() { | 28 parse_gettext_version() { |
29 GETTEXT_VERSION=`$GETTEXT_TOOL --version | sed -n 's/^.*\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\).*$/\1.\2.\3/p'` | 29 GETTEXT_VERSION=`$GETTEXT_TOOL --version | sed -n 's/^.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$/\1.\2.\3/p'` |
30 GETTEXT_MAJOR_VERSION=`echo $GETTEXT_VERSION | sed -n 's/^\([0-9]\+\).*/\1/p'` | 30 GETTEXT_MAJOR_VERSION=`echo $GETTEXT_VERSION | cut -d. -f1` |
31 GETTEXT_MINOR_VERSION=`echo $GETTEXT_VERSION | sed -n 's/^[0-9]\+\.\([0-9]\+\).*/\1/p'` | 31 GETTEXT_MINOR_VERSION=`echo $GETTEXT_VERSION | cut -d. -f2` |
32 GETTEXT_MICRO_VERSION=`echo $GETTEXT_VERSION | sed -n 's/^[0-9]\+\.[0-9]\+\.\([0-9]\+\).*/\1/p'` | 32 GETTEXT_MICRO_VERSION=`echo $GETTEXT_VERSION | cut -d. -f3` |
33 } | 33 } |
34 | 34 |
35 find_gettext() { | 35 find_gettext() { |
36 GETTEXT_TOOL=autopoint | 36 GETTEXT_TOOL=autopoint |
37 | 37 |