Changeset 2243


Ignore:
Timestamp:
Jun 9, 2011 1:37:49 PM (9 years ago)
Author:
stefan
Message:

update update of version numbers in configuration header file for non-autotools builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prepare_new_release

    r2202 r2243  
    436436fi
    437437
    438 # Find ProjConfig.h. If there's a definition for PROJ_VERSION, adjust it and
    439 # add ProjConfig.h.bak to the list of files to be restored.
     438# Find config_proj_default.h. If there's a definition for PROJ_VERSION, adjust it and
     439# add config_proj_default.h.bak to the list of files to be restored.
    440440
    441441stableProjUC=`echo $stableProj | tr '[a-z]' '[A-Z]'`
    442 configFileLoc=`find . -name '*Config.h' -print`
     442configFileLoc=`find . -name 'config_*_default.h' -print`
    443443if test -n "$configFileLoc" ; then
    444444  versionSym=${stableProjUC}_VERSION
     
    448448  mv $configFileLoc $configFileLoc.bak
    449449  bak_files="$bak_files $configFileLoc"
    450   sed -e "s/# *define $versionSym.*\$/#define $versionSym \"$newVer\"/" <$configFileLoc.bak >$configFileLoc
     450  sed -e "s/# *define $versionSym .*\$/#define $versionSym \"$newVer\"/" \
     451    -e "s/# *define ${versionSym}_MAJOR .*\$/#define ${versionSym}_MAJOR $majVer/" \
     452    -e "s/# *define ${versionSym}_MINOR .*\$/#define ${versionSym}_MINOR $minVer/" \
     453    -e "s/# *define ${versionSym}_RELEASE .*\$/#define ${versionSym}_RELEASE $newRel/" \
     454    <$configFileLoc.bak >$configFileLoc
    451455  svn diff $configFileLoc
    452456fi
Note: See TracChangeset for help on using the changeset viewer.