PATCH: Release script

Mark Mitchell mark@codesourcery.com
Thu May 9 00:05:00 GMT 2002


The release script did not handle uploading correctly the last time I 
built a prerelease.

Tested with the last prerelease; installed on the maineline and on the branch. 

-- 
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2002-05-08  Mark Mitchell  <mark@codesourcery.com>

	* gcc_release: Correct upload handling.

Index: gcc_release
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/gcc_release,v
retrieving revision 1.8.2.3
diff -c -p -r1.8.2.3 gcc_release
*** gcc_release	22 Apr 2002 16:04:44 -0000	1.8.2.3
--- gcc_release	9 May 2002 05:44:27 -0000
*************** upload_files() {
*** 337,345 ****
--- 337,347 ----
    # Make sure the directory exists on the server.
    if [ $LOCAL -eq 0 ]; then
      ${SSH} -l ${GCC_USERNAME} ${GCC_HOSTNAME} mkdir ${FTP_PATH}
+     UPLOAD_PATH="${GCC_USERNAME}@${GCC_HOSTNAME}:${FTP_PATH}"
    else
      mkdir -p "${FTP_PATH}" \
        || error "Could not create \`${FTP_PATH}'"
+     UPLOAD_PATH=${FTP_PATH}
    fi
  
    for x in gcc*.gz gcc*.bz2; do
*************** upload_files() {
*** 347,354 ****
        # Make sure the file will be readable on the server.
        chmod a+r ${x}
        # Copy it.
!       ${SCP} ${x} ${FTP_PATH} || \
!         error "Could not upload ${x}"
      fi
    done
  }
--- 349,357 ----
        # Make sure the file will be readable on the server.
        chmod a+r ${x}
        # Copy it.
!       if [ $LOCAL -eq 0 ]; then
!         ${SCP} ${x} ${UPLOAD_PATH} || error "Could not upload ${x}"
!       fi
      fi
    done
  }



More information about the Gcc-patches mailing list