Mercurial > hg > CbC > CbC_gcc
comparison maintainer-scripts/gcc_release @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | b7f97abdc517 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
65:65488c3d617d | 67:f6334be47118 |
---|---|
284 | 284 |
285 # Now, build one for each of the languages. | 285 # Now, build one for each of the languages. |
286 maybe_build_tarfile gcc-ada-${RELEASE} ${ADA_DIRS} | 286 maybe_build_tarfile gcc-ada-${RELEASE} ${ADA_DIRS} |
287 maybe_build_tarfile gcc-g++-${RELEASE} ${CPLUSPLUS_DIRS} | 287 maybe_build_tarfile gcc-g++-${RELEASE} ${CPLUSPLUS_DIRS} |
288 maybe_build_tarfile gcc-fortran-${RELEASE} ${FORTRAN95_DIRS} | 288 maybe_build_tarfile gcc-fortran-${RELEASE} ${FORTRAN95_DIRS} |
289 maybe_build_tarfile gcc-go-${RELEASE} ${GO_DIRS} | |
289 maybe_build_tarfile gcc-java-${RELEASE} ${JAVA_DIRS} | 290 maybe_build_tarfile gcc-java-${RELEASE} ${JAVA_DIRS} |
290 maybe_build_tarfile gcc-objc-${RELEASE} ${OBJECTIVEC_DIRS} | 291 maybe_build_tarfile gcc-objc-${RELEASE} ${OBJECTIVEC_DIRS} |
291 maybe_build_tarfile gcc-testsuite-${RELEASE} ${TESTSUITE_DIRS} | 292 maybe_build_tarfile gcc-testsuite-${RELEASE} ${TESTSUITE_DIRS} |
292 | 293 |
293 # The core is everything else. | 294 # The core is everything else. |
294 EXCLUDES="" | 295 EXCLUDES="" |
295 for x in ${ADA_DIRS} ${CPLUSPLUS_DIRS} ${FORTRAN95_DIRS}\ | 296 for x in ${ADA_DIRS} ${CPLUSPLUS_DIRS} ${FORTRAN95_DIRS}\ |
296 ${JAVA_DIRS} ${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do | 297 ${GO_DIRS} ${JAVA_DIRS} ${OBJECTIVEC_DIRS} ${TESTSUITE_DIRS}; do |
297 EXCLUDES="${EXCLUDES} --exclude $x" | 298 EXCLUDES="${EXCLUDES} --exclude $x" |
298 done | 299 done |
299 build_tarfile gcc-core-${RELEASE} ${EXCLUDES} \ | 300 build_tarfile gcc-core-${RELEASE} ${EXCLUDES} \ |
300 `basename ${SOURCE_DIRECTORY}` | 301 `basename ${SOURCE_DIRECTORY}` |
301 } | 302 } |
313 old_dir=${1%/*} | 314 old_dir=${1%/*} |
314 old_file=${1##*/} | 315 old_file=${1##*/} |
315 old_vers=${old_file%.tar.bz2} | 316 old_vers=${old_file%.tar.bz2} |
316 old_vers=${old_vers#gcc-} | 317 old_vers=${old_vers#gcc-} |
317 inform "Building diffs against version $old_vers" | 318 inform "Building diffs against version $old_vers" |
318 for f in gcc gcc-ada gcc-g++ gcc-fortran gcc-java gcc-objc gcc-testsuite gcc-core; do | 319 for f in gcc gcc-ada gcc-g++ gcc-fortran gcc-go gcc-java gcc-objc gcc-testsuite gcc-core; do |
319 old_tar=${old_dir}/${f}-${old_vers}.tar.bz2 | 320 old_tar=${old_dir}/${f}-${old_vers}.tar.bz2 |
320 new_tar=${WORKING_DIRECTORY}/${f}-${RELEASE}.tar.bz2 | 321 new_tar=${WORKING_DIRECTORY}/${f}-${RELEASE}.tar.bz2 |
321 if [ ! -e $old_tar ]; then | 322 if [ ! -e $old_tar ]; then |
322 inform "$old_tar not found; not generating diff file" | 323 inform "$old_tar not found; not generating diff file" |
323 elif [ ! -e $new_tar ]; then | 324 elif [ ! -e $new_tar ]; then |
384 } | 385 } |
385 | 386 |
386 # Print description if snapshot exists. | 387 # Print description if snapshot exists. |
387 snapshot_print() { | 388 snapshot_print() { |
388 if [ -e ${RELEASE}/$1 ]; then | 389 if [ -e ${RELEASE}/$1 ]; then |
389 printf "%-38s%s\n\n" "$1" "$2" >> ${SNAPSHOT_README} | 390 hash=`openssl md5 ${RELEASE}/$1 | sed -e 's#(.*)##' -e 's# *= *#=#'` |
391 hash2=`openssl sha1 ${RELEASE}/$1 | sed -e 's#(.*)##' -e 's# *= *#=#'` | |
392 | |
393 printf " %-37s%s\n\n %s\n %s\n\n" "$1" "$2" "$hash" "$hash2" \ | |
394 >> ${SNAPSHOT_README} | |
395 | |
390 echo " <tr><td><a href=\"$1\">$1</a></td>" >> ${SNAPSHOT_INDEX} | 396 echo " <tr><td><a href=\"$1\">$1</a></td>" >> ${SNAPSHOT_INDEX} |
391 echo " <td>$2</td></tr>" >> ${SNAPSHOT_INDEX} | 397 echo " <td>$2</td></tr>" >> ${SNAPSHOT_INDEX} |
392 fi | 398 fi |
393 } | 399 } |
394 | 400 |
438 snapshot_print gcc-${RELEASE}.tar.bz2 "Complete GCC (includes all of below)" | 444 snapshot_print gcc-${RELEASE}.tar.bz2 "Complete GCC (includes all of below)" |
439 snapshot_print gcc-core-${RELEASE}.tar.bz2 "C front end and core compiler" | 445 snapshot_print gcc-core-${RELEASE}.tar.bz2 "C front end and core compiler" |
440 snapshot_print gcc-ada-${RELEASE}.tar.bz2 "Ada front end and runtime" | 446 snapshot_print gcc-ada-${RELEASE}.tar.bz2 "Ada front end and runtime" |
441 snapshot_print gcc-fortran-${RELEASE}.tar.bz2 "Fortran front end and runtime" | 447 snapshot_print gcc-fortran-${RELEASE}.tar.bz2 "Fortran front end and runtime" |
442 snapshot_print gcc-g++-${RELEASE}.tar.bz2 "C++ front end and runtime" | 448 snapshot_print gcc-g++-${RELEASE}.tar.bz2 "C++ front end and runtime" |
449 snapshot_print gcc-go-${RELEASE}.tar.bz2 "Go front end and runtime" | |
443 snapshot_print gcc-java-${RELEASE}.tar.bz2 "Java front end and runtime" | 450 snapshot_print gcc-java-${RELEASE}.tar.bz2 "Java front end and runtime" |
444 snapshot_print gcc-objc-${RELEASE}.tar.bz2 "Objective-C front end and runtime" | 451 snapshot_print gcc-objc-${RELEASE}.tar.bz2 "Objective-C front end and runtime" |
445 snapshot_print gcc-testsuite-${RELEASE}.tar.bz2 "The GCC testsuite" | 452 snapshot_print gcc-testsuite-${RELEASE}.tar.bz2 "The GCC testsuite" |
446 | 453 |
447 echo \ | 454 echo \ |
545 # The directories that should be part of the various language-specific | 552 # The directories that should be part of the various language-specific |
546 # tar files. These are all relative to the top of the source tree. | 553 # tar files. These are all relative to the top of the source tree. |
547 ADA_DIRS="gcc/ada libada gnattools" | 554 ADA_DIRS="gcc/ada libada gnattools" |
548 CPLUSPLUS_DIRS="gcc/cp libstdc++-v3" | 555 CPLUSPLUS_DIRS="gcc/cp libstdc++-v3" |
549 FORTRAN95_DIRS="gcc/fortran libgfortran" | 556 FORTRAN95_DIRS="gcc/fortran libgfortran" |
557 GO_DIRS="gcc/go libgo libffi" | |
550 JAVA_DIRS="gcc/java libjava libffi boehm-gc" | 558 JAVA_DIRS="gcc/java libjava libffi boehm-gc" |
551 OBJECTIVEC_DIRS="gcc/objc gcc/objcp libobjc" | 559 OBJECTIVEC_DIRS="gcc/objc gcc/objcp libobjc" |
552 TESTSUITE_DIRS="gcc/testsuite" | 560 TESTSUITE_DIRS="gcc/testsuite" |
553 | 561 |
554 # Non-zero if this is the final release, rather than a prerelease. | 562 # Non-zero if this is the final release, rather than a prerelease. |
691 # Recompute the names of all the language-specific directories, | 699 # Recompute the names of all the language-specific directories, |
692 # relative to the WORKING_DIRECTORY. | 700 # relative to the WORKING_DIRECTORY. |
693 ADA_DIRS=`adjust_dirs ${ADA_DIRS}` | 701 ADA_DIRS=`adjust_dirs ${ADA_DIRS}` |
694 CPLUSPLUS_DIRS=`adjust_dirs ${CPLUSPLUS_DIRS}` | 702 CPLUSPLUS_DIRS=`adjust_dirs ${CPLUSPLUS_DIRS}` |
695 FORTRAN95_DIRS=`adjust_dirs ${FORTRAN95_DIRS}` | 703 FORTRAN95_DIRS=`adjust_dirs ${FORTRAN95_DIRS}` |
704 GO_DIRS=`adjust_dirs ${GO_DIRS}` | |
696 JAVA_DIRS=`adjust_dirs ${JAVA_DIRS}` | 705 JAVA_DIRS=`adjust_dirs ${JAVA_DIRS}` |
697 OBJECTIVEC_DIRS=`adjust_dirs ${OBJECTIVEC_DIRS}` | 706 OBJECTIVEC_DIRS=`adjust_dirs ${OBJECTIVEC_DIRS}` |
698 TESTSUITE_DIRS=`adjust_dirs ${TESTSUITE_DIRS}` | 707 TESTSUITE_DIRS=`adjust_dirs ${TESTSUITE_DIRS}` |
699 | 708 |
700 # Set up SVNROOT. | 709 # Set up SVNROOT. |
701 if [ $LOCAL -eq 0 ]; then | 710 if [ $LOCAL -eq 0 ]; then |
702 SVNROOT="svn+ssh://${SVN_USERNAME}@${SVN_SERVER}${SVN_REPOSITORY}" | 711 SVNROOT="svn+ssh://${SVN_USERNAME}@${SVN_SERVER}${SVN_REPOSITORY}" |
703 CVSROOT=":ext:${SVN_USERNAME}@gcc.gnu.org/cvs/gcc" | |
704 else | 712 else |
705 SVNROOT="file:///svn/gcc" | 713 SVNROOT="file:///svn/gcc" |
706 CVSROOT="/cvs/gcc" | |
707 fi | 714 fi |
708 export SVNROOT | 715 export SVNROOT |
709 export CVSROOT | |
710 | 716 |
711 ######################################################################## | 717 ######################################################################## |
712 # Main Program | 718 # Main Program |
713 ######################################################################## | 719 ######################################################################## |
714 | 720 |