This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: gcc_release


This patch corrects the tendency of the gcc_release script to go
modifying the bug-report URL in version.c.

Per Gerald's request, it also changes the location for prereleaes.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

2003-08-08  Mark Mitchell  <mark@codesourcery.com>

	* gcc_release: Correct logic for updating version.c.  Put
	prereleases into a subdirectory.

Index: gcc_release
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/gcc_release,v
retrieving revision 1.20.4.6
diff -c -5 -p -r1.20.4.6 gcc_release
*** gcc_release	29 Jun 2003 09:12:10 -0000	1.20.4.6
--- gcc_release	8 Aug 2003 16:24:35 -0000
*************** EOF
*** 128,138 ****
  
      # Update `gcc/version.c'.
      for x in gcc/version.c; do 
        y=`basename ${x}`
        (changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \
!           sed -e 's|= \".*\"|= \"'${RELEASE}'\"|g' < ${y} > ${y}.new && \
  	  mv ${y}.new ${y} && \
            ${CVS} ci -m 'Update version' ${y}) || \
  	  error "Could not update ${x}"
      done
  
--- 128,138 ----
  
      # Update `gcc/version.c'.
      for x in gcc/version.c; do 
        y=`basename ${x}`
        (changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \
!           sed -e 's|version_string\[\] = \".*\"|version_string\[\] = \"'${RELEASE}'\"|g' < ${y} > ${y}.new && \
  	  mv ${y}.new ${y} && \
            ${CVS} ci -m 'Update version' ${y}) || \
  	  error "Could not update ${x}"
      done
  
*************** if [ $SNAPSHOT -eq 0 ]; then
*** 513,523 ****
    BRANCH="gcc-${RELEASE_MAJOR}_${RELEASE_MINOR}-branch"
  
    # If this is not a final release, set various parameters acordingly.
    if [ ${FINAL} -ne 1 ]; then
      RELEASE="${RELEASE}-${DATE}"
!     FTP_PATH="${FTP_PATH}/snapshots/"
    else
      FTP_PATH="${FTP_PATH}/releases/gcc-${RELEASE}/"
    fi
  else
    RELEASE=$DATE
--- 513,523 ----
    BRANCH="gcc-${RELEASE_MAJOR}_${RELEASE_MINOR}-branch"
  
    # If this is not a final release, set various parameters acordingly.
    if [ ${FINAL} -ne 1 ]; then
      RELEASE="${RELEASE}-${DATE}"
!     FTP_PATH="${FTP_PATH}/prerelease-${RELEASE}/"
    else
      FTP_PATH="${FTP_PATH}/releases/gcc-${RELEASE}/"
    fi
  else
    RELEASE=$DATE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]