configure problem
Vlad@geekizoid.com
vlad at geekizoid.com
Sun Feb 2 03:22:02 UTC 2003
Okay,
This:
gettext_ver=`$GETTEXTIZE --version | \
sed '2,$d; # remove all but the first line
s/.* //; # take text after the last space
s/-.*//; # strip "-pre" or "-rc" at the end
s/\([^.]\+\)/0\1/g; # prepend 0 to every token
s/0\([^.][^.]\)/\1/g; # trim 0 from long lokens
s/\.//g; # remove dots
'`
Seems to not work correctly on
This:
www# gettextize --version
/usr/local/bin/gettextize (GNU gettext) 0.11.5
Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Written by Ulrich Drepper
I think what's happening here, is that the version of gettext is now 0.11.5,
and sed wacking this down to "0115" which the rest of the script seems to
interprit as being version 0.01.15, which is wrong. Unfortunately, I'm not
a sed programmer, so I have no idea how to fix this in sed. A perl hacker I
know thinks this would work:
gettextize --version|head -1|perl -ne 's/^.* ([0-9\.]+)$/$1/g; s/\.//g;
print;'
More information about the mc-devel
mailing list