Changeset 1391 for branches/GNU/src/gcc/maintainer-scripts/gcc_release
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
maintainer-scripts/gcc_release (modified) (12 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/maintainer-scripts/gcc_release
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 12 12 # Copyright (c) 2001, 2002 Free Software Foundation. 13 13 # 14 # This file is part of G NUCC.15 # 16 # G NUCC is free software; you can redistribute it and/or modify14 # This file is part of GCC. 15 # 16 # GCC is free software; you can redistribute it and/or modify 17 17 # it under the terms of the GNU General Public License as published by 18 18 # the Free Software Foundation; either version 2, or (at your option) 19 19 # any later version. 20 20 # 21 # G NUCC is distributed in the hope that it will be useful,21 # GCC is distributed in the hope that it will be useful, 22 22 # but WITHOUT ANY WARRANTY; without even the implied warranty of 23 23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 25 25 # 26 26 # You should have received a copy of the GNU General Public License 27 # along with G NUCC; see the file COPYING. If not, write to27 # along with GCC; see the file COPYING. If not, write to 28 28 # the Free Software Foundation, 59 Temple Place - Suite 330, 29 29 # Boston, MA 02111-1307, USA. … … 127 127 done 128 128 129 # Update `gcc/version.c'. There are other version files 130 # as well, which should have release status updated. 129 # Update `gcc/version.c'. 131 130 for x in gcc/version.c; do 132 131 y=`basename ${x}` 133 132 (changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \ 134 sed -e 's|= \".*\"|= \"'${RELEASE}'\"|g' < ${y} > ${y}.new && \ 135 mv ${y}.new ${y} && \ 136 ${CVS} ci -m 'Update version' ${y}) || \ 137 error "Could not update ${x}" 138 done 139 for x in gcc/ada/gnatvsn.ads gcc/f/version.c libf2c/libF77/Version.c \ 140 libf2c/libI77/Version.c libf2c/libU77/Version.c; do 141 y=`basename ${x}` 142 (changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \ 143 sed -e 's/experimental\|prerelease/release/g' < ${y} > ${y}.new && \ 133 sed -e 's|version_string\[\] = \".*\"|version_string\[\] = \"'${RELEASE}'\"|g' < ${y} > ${y}.new && \ 144 134 mv ${y}.new ${y} && \ 145 135 ${CVS} ci -m 'Update version' ${y}) || \ … … 175 165 inform "Retrieving HTML documentation" 176 166 changedir "${WORKING_DIRECTORY}" 177 for x in bugs gnatsfaq; do167 for x in bugs faq; do 178 168 (${CVS} export -r HEAD wwwdocs/htdocs/${x}.html && \ 179 169 cp ${WORKING_DIRECTORY}/wwwdocs/htdocs/${x}.html \ … … 189 179 | sed -e "s#file://localhost`/bin/pwd`\(.*\)#http://gcc.gnu.org\1#g" \ 190 180 > $newfile) || \ 191 error "Could not regenerate documentation"181 error "Could not " 192 182 done 193 183 … … 303 293 old_tar=${old_dir}/${f}-${old_vers}.tar.gz 304 294 new_tar=${WORKING_DIRECTORY}/${f}-${RELEASE}.tar.gz 305 if [ -e $old_tar ] && [ -e $new_tar ]; then 295 if [ ! -e $old_tar ]; then 296 inform "$old_tar not found; not generating diff file" 297 elif [ ! -e $new_tar ]; then 298 inform "$new_tar not found; not generating diff file" 299 else 306 300 build_diff $old_tar gcc-${old_vers} $new_tar gcc-${RELEASE} \ 307 301 ${f}-${old_vers}-${RELEASE}.diff.gz … … 337 331 # Make sure the directory exists on the server. 338 332 if [ $LOCAL -eq 0 ]; then 339 ${SSH} -l ${GCC_USERNAME} ${GCC_HOSTNAME} mkdir ${FTP_PATH} 333 ${SSH} -l ${GCC_USERNAME} ${GCC_HOSTNAME} \ 334 mkdir -p "${FTP_PATH}/diffs" 340 335 UPLOAD_PATH="${GCC_USERNAME}@${GCC_HOSTNAME}:${FTP_PATH}" 341 336 else 342 mkdir -p "${FTP_PATH} " \337 mkdir -p "${FTP_PATH}" \ 343 338 || error "Could not create \`${FTP_PATH}'" 344 339 UPLOAD_PATH=${FTP_PATH} 345 340 fi 346 341 342 347 343 for x in gcc*.gz gcc*.bz2; do 348 344 if [ -e ${x} ]; then … … 350 346 chmod a+r ${x} 351 347 # Copy it. 352 if [ $LOCAL -eq 0 ]; then 353 ${SCP} ${x} ${UPLOAD_PATH} || error "Could not upload ${x}" 354 fi 348 case ${x} in 349 *.diff.*) 350 SUBDIR="diffs/"; 351 ;; 352 *) 353 SUBDIR=""; 354 esac 355 ${SCP} ${x} ${UPLOAD_PATH}/${SUBDIR} \ 356 || error "Could not upload ${x}" 355 357 fi 356 358 done … … 514 516 if [ ${FINAL} -ne 1 ]; then 515 517 RELEASE="${RELEASE}-${DATE}" 516 FTP_PATH="${FTP_PATH}/ snapshots/"518 FTP_PATH="${FTP_PATH}//" 517 519 else 518 520 FTP_PATH="${FTP_PATH}/releases/gcc-${RELEASE}/" … … 520 522 else 521 523 RELEASE=$DATE 522 # For now snapshots come from the 3.1 branch.523 BRANCH= gcc-3_1-branch524 # For now snapshots come from the . 525 BRANCH= 524 526 FTP_PATH="${FTP_PATH}/snapshots/${LONG_DATE}" 525 527 TAG=gcc_ss_${DATE} … … 573 575 tarfiles) MODE_TARFILES=1;; 574 576 upload) MODE_UPLOAD=1;; 575 all) MODE_SOURCES=1; MODE_TARFILES=1; MODE_DIFFS=1; MODE_BZIP2=1; MODE_UPLOAD=1;; 577 all) MODE_SOURCES=1; MODE_TARFILES=1; MODE_DIFFS=1; MODE_UPLOAD=1; 578 if [ $SNAPSHOT -ne 1 ]; then 579 # Only for releases and pre-releases. 580 MODE_BZIP2=1; 581 fi 582 ;; 576 583 *) error "Unknown mode $1";; 577 584 esac … … 633 640 echo $DATE >.snapshot_date 634 641 635 # Update gcc_latest_snapshot tag.636 ${CVS} rtag -d gcc_latest_snapshot gcc637 ${CVS} rtag -rgcc_ss_${DATE} gcc_latest_snapshot gcc638 639 642 # Announce the snapshot. 640 643 export QMAILHOST=gcc.gnu.org -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
