Changeset 2042d41 for configure


Ignore:
Timestamp:
Oct 28, 2016, 4:51:15 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
65c61ec
Parents:
32b018e
Message:

use \'cut\' to subdivide version number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r32b018e r2042d41  
    29642964                        # may require auto* software to be installed
    29652965
    2966 echo ${PACKAGE_VERSION} > version
    2967 ver_major=`echo ${PACKAGE_VERSION} | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/\1/'`
    2968 ver_minor=`echo ${PACKAGE_VERSION} | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/\2/'`
    2969 ver_patch=`echo ${PACKAGE_VERSION} | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/\3/'`
    2970 ver_build=`echo ${PACKAGE_VERSION} | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/\4/'`
     2966echo ${PACKAGE_VERSION} > version               # file containing version number for other tools
     2967ver_major=`cut -d '.' -f1 version`              # subdivide version number into components at periods
     2968ver_minor=`cut -d '.' -f2 version`
     2969ver_patch=`cut -d '.' -f3 version`
     2970ver_build=`cut -d '.' -f4 version`
    29712971
    29722972# AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/version'])
Note: See TracChangeset for help on using the changeset viewer.