Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 622360 | Differences between
and this patch

Collapse All | Expand All

(-)a/conftools/get-version.sh (-12 / +1 lines)
Lines 32-46 MAJOR_VERSION="`sed -n -e '/MAJOR_VERSION/s/[^0-9]*//gp' $hdr`" Link Here
32
MINOR_VERSION="`sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' $hdr`"
32
MINOR_VERSION="`sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' $hdr`"
33
MICRO_VERSION="`sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' $hdr`"
33
MICRO_VERSION="`sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' $hdr`"
34
34
35
# Determine how to tell echo not to print the trailing \n. This is
35
printf "$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION"
36
# similar to Autoconf's @ECHO_C@ and @ECHO_N@; however, we don't
37
#  generate this file via autoconf (in fact, get-version.sh is used
38
# to *create* ./configure), so we just do something similar inline.
39
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40
  *c*,-n*) ECHO_N= ECHO_C='
41
' ;;
42
  *c*,*  ) ECHO_N=-n ECHO_C= ;;
43
  *)      ECHO_N= ECHO_C='\c' ;;
44
esac
45
46
echo $ECHO_N "$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$ECHO_C"

Return to bug 622360