Changeset 2042d41


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

use \'cut\' to subdivide version number

Files:
2 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'])
  • 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.