Changeset 47a8d17 for configure


Ignore:
Timestamp:
Oct 27, 2016, 3:02:56 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
24eb51ed, 3f0c6a5
Parents:
6d7c3df
Message:

cfa version is now based on file of the same name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r6d7c3df r47a8d17  
    646646CFA_BACKEND_CC
    647647BACKEND_CC
     648CONFIG_STATUS_DEPENDENCIES
    648649MAINT
    649650MAINTAINER_MODE_FALSE
     
    29642965                        # may require auto* software to be installed
    29652966
    2966 
    2967 $as_echo "#define CFA_VERSION_MAJOR \"1\"" >>confdefs.h
    2968 
    2969 
    2970 $as_echo "#define CFA_VERSION_MINOR \"0\"" >>confdefs.h
    2971 
    2972 
    2973 $as_echo "#define CFA_VERSION_PATCH \"0\"" >>confdefs.h
     2967ver_major=`cat version | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/\1/'`
     2968ver_minor=`cat version | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/\2/'`
     2969ver_patch=`cat version | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/\3/'`
     2970ver_build=`cat version | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/\4/'`
     2971ver_short="\"${ver_major}\""
     2972ver__long="\"${ver_major}.${ver_minor}\""
     2973ver__norm="\"${ver_major}.${ver_minor}.${ver_patch}\""
     2974ver__full="\"${ver_major}.${ver_minor}.${ver_patch}.${ver_build}\""
     2975
     2976CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version'
     2977
     2978
     2979cat >>confdefs.h <<_ACEOF
     2980#define CFA_VERSION_MAJOR ${ver_major}
     2981_ACEOF
     2982
     2983
     2984cat >>confdefs.h <<_ACEOF
     2985#define CFA_VERSION_MINOR ${ver_minor}
     2986_ACEOF
     2987
     2988
     2989cat >>confdefs.h <<_ACEOF
     2990#define CFA_VERSION_PATCH ${ver_patch}
     2991_ACEOF
     2992
     2993
     2994cat >>confdefs.h <<_ACEOF
     2995#define CFA_VERSION_BUILD ${ver_build}
     2996_ACEOF
     2997
     2998
     2999cat >>confdefs.h <<_ACEOF
     3000#define CFA_VERSION_SHORT ${ver_short}
     3001_ACEOF
     3002
     3003
     3004cat >>confdefs.h <<_ACEOF
     3005#define CFA_VERSION ${ver__long}
     3006_ACEOF
     3007
     3008
     3009cat >>confdefs.h <<_ACEOF
     3010#define CFA_VERSION_LONG ${ver__norm}
     3011_ACEOF
     3012
     3013
     3014cat >>confdefs.h <<_ACEOF
     3015#define CFA_VERSION_FULL ${ver__full}
     3016_ACEOF
    29743017
    29753018
Note: See TracChangeset for help on using the changeset viewer.