Changeset 2042d41 for configure.ac


Ignore:
Timestamp:
Oct 28, 2016, 4:51:15 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, 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.ac

    r32b018e r2042d41  
    1818AM_MAINTAINER_MODE(enable)                      # may require auto* software to be installed
    1919
    20 echo ${PACKAGE_VERSION} > version
    21 ver_major=`echo ${PACKAGE_VERSION} | sed -r 's/([[0-9]]+)\.([[0-9]]+)\.([[0-9]]+)\.([[0-9]]+)/\1/'`
    22 ver_minor=`echo ${PACKAGE_VERSION} | sed -r 's/([[0-9]]+)\.([[0-9]]+)\.([[0-9]]+)\.([[0-9]]+)/\2/'`
    23 ver_patch=`echo ${PACKAGE_VERSION} | sed -r 's/([[0-9]]+)\.([[0-9]]+)\.([[0-9]]+)\.([[0-9]]+)/\3/'`
    24 ver_build=`echo ${PACKAGE_VERSION} | sed -r 's/([[0-9]]+)\.([[0-9]]+)\.([[0-9]]+)\.([[0-9]]+)/\4/'`
     20echo ${PACKAGE_VERSION} > version               # file containing version number for other tools
     21ver_major=`cut -d '.' -f1 version`              # subdivide version number into components at periods
     22ver_minor=`cut -d '.' -f2 version`
     23ver_patch=`cut -d '.' -f3 version`
     24ver_build=`cut -d '.' -f4 version`
    2525
    2626# AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/version'])
Note: See TracChangeset for help on using the changeset viewer.