- Timestamp:
- Aug 3, 2013 2:40:00 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prepare_new_release
r2840 r2841 361 361 # contains a '/', strip it out to make the build and checkout directories. 362 362 363 top BuildDir=`echo $stableProj | sed -e 's|.*/\([^/]*\)$|\1|'`364 topBuildDir="${top BuildDir}-${newVer}"363 topProjName=`echo $stableProj | sed -e 's|.*/\([^/]*\)$|\1|'` 364 topBuildDir="${topProjName}-${newVer}" 365 365 if test $isThirdParty = yes; then 366 366 coDir=$topBuildDir/Thirdparty/$stableProj … … 418 418 echo '' 419 419 echo "===> Checking for configure.ac files ..." 420 bak_files=`find . -name 'configure.ac'` 420 if test -d $topProjName ; then 421 bak_files=`find $topProjName -name 'configure.ac'` 422 fi 423 if test -e configure.ac ; then 424 bak_files="$bak_files configure.ac" 425 fi 421 426 422 427 if test -n "$bak_files" ; then … … 448 453 # add config_proj_default.h.bak to the list of files to be restored. 449 454 450 stableProjUC=`echo $stableProj | tr '[a-z]' '[A-Z]'` 451 configFileLoc=`find . -name .svn -prune -o -name 'config_*_default.h' -print` 455 topProjNameUC=`echo $topProjName | tr '[a-z]' '[A-Z]'` 456 if test -d $topProjName ; then 457 configFileLoc=`find $topProjName -name .svn -prune -o -name 'config_*_default.h' -print` 458 fi 452 459 if test -n "$configFileLoc" ; then 453 versionSym=${ stableProjUC}_VERSION460 versionSym=${topProjNameUC}_VERSION 454 461 echo '' 455 462 echo "===> Updating $versionSym in $configFileLoc (if present)" -
trunk/prepare_new_stable
r2840 r2841 330 330 # Construct a build directory name. 331 331 332 top BuildDir=`echo $srcProj | sed -e 's|.*/\([^/]*\)$|\1|'`333 topBuildDir=${top BuildDir}-${newVersion}332 topProjName=`echo $srcProj | sed -e 's|.*/\([^/]*\)$|\1|'` 333 topBuildDir=${topProjName}-${newVersion} 334 334 echo "Build directory.....: $topBuildDir" 335 335 … … 382 382 383 383 echo '' 384 bak_files=`find . -name 'configure.ac'` 384 if test -d $topProjName ; then 385 bak_files=`find $topProjName -name 'configure.ac'` 386 fi 387 if test -e configure.ac ; then 388 bak_files="$bak_files configure.ac" 389 fi 385 390 echo "===> Creating backup (.bak) for configure.ac files..." 386 391 for i in $bak_files; do … … 405 410 # add config_proj_default.h.bak to the list of files to be restored. 406 411 407 srcProjUC=`echo $srcProj | tr '[a-z]' '[A-Z]'` 408 configFileLoc=`find . -name .svn -prune -o -name 'config_*_default.h' -print` 412 topProjNameUC=`echo $topProjName | tr '[a-z]' '[A-Z]'` 413 if test -d $topProjName ; then 414 configFileLoc=`find $topProjName -name .svn -prune -o -name 'config_*_default.h' -print` 415 fi 416 echo "config File Loc: $configFileLoc" 409 417 if test -n "$configFileLoc" ; then 410 versionSym=${ srcProjUC}_VERSION418 versionSym=${topProjNameUC}_VERSION 411 419 echo '' 412 420 echo "===> Updating $versionSym in $configFileLoc (if present)"
Note: See TracChangeset
for help on using the changeset viewer.