diff options
author | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-14 22:38:57 +0000 |
---|---|---|
committer | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-14 22:38:57 +0000 |
commit | b85989a9023fffd8e00fcc61a1e77da6d0feb446 (patch) | |
tree | 0f61f1abb44700d2d642d75aa9afe5bfc5742e9f /maintainer-scripts | |
parent | ef8d967c3ab5b4c4a6cfe8b5527a5d6ff4c86bd9 (diff) | |
download | linaro-gcc-b85989a9023fffd8e00fcc61a1e77da6d0feb446.tar.gz linaro-gcc-b85989a9023fffd8e00fcc61a1e77da6d0feb446.tar.bz2 linaro-gcc-b85989a9023fffd8e00fcc61a1e77da6d0feb446.zip |
* gcc_release (SNAPSHOTS_DIR): New variable. Use it.
(announce_snapshot): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79484 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts')
-rw-r--r-- | maintainer-scripts/ChangeLog | 5 | ||||
-rwxr-xr-x | maintainer-scripts/gcc_release | 14 |
2 files changed, 13 insertions, 6 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog index ba125775517..2646c80a4d9 100644 --- a/maintainer-scripts/ChangeLog +++ b/maintainer-scripts/ChangeLog @@ -1,5 +1,10 @@ 2004-03-14 Gerald Pfeifer <gerald@pfeifer.com> + * gcc_release (SNAPSHOTS_DIR): New variable. Use it. + (announce_snapshot): Use it. + +2004-03-14 Gerald Pfeifer <gerald@pfeifer.com> + * gcc_release (announce_snapshot): Use changedir instead of plain cd. diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index a9718ae71b9..0b6340f18a7 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -392,7 +392,7 @@ announce_snapshot() { inform "Updating links and READMEs on the FTP server" TEXT_DATE=`date --date=$DATE +%B\ %d,\ %Y` - changedir ~ftp/pub/gcc/snapshots + changedir "${SNAPSHOTS_DIR}" sed -e "s%@DATE@%$DATE%g" \ -e "s%@TEXT_DATE@%$TEXT_DATE%g" \ -e "s%@LAST_DATE@%$LAST_DATE%g" \ @@ -416,7 +416,7 @@ announce_snapshot() { inform "Sending mail" export QMAILHOST=gcc.gnu.org - mail -s "gcc-ss-${RELEASE} is now available" gcc@gcc.gnu.org < ~ftp/pub/gcc/snapshots/${RELEASE}/README + mail -s "gcc-ss-${RELEASE} is now available" gcc@gcc.gnu.org < ${SNAPSHOTS_DIR}/${RELEASE}/README } ######################################################################## @@ -440,8 +440,11 @@ CVS_USERNAME="${USER}" GCC_HOSTNAME="gcc.gnu.org" # The name of the account on the machine to which files are uploaded. GCC_USERNAME="gccadmin" -# The directory in which the files will be placed. -FTP_PATH="~ftp/pub/gcc" +# The directory in which the files will be placed (must not use quotes +# or ~ftp syntax will break). +FTP_PATH=~ftp/pub/gcc +# The directory in which snapshots will be placed. +SNAPSHOTS_DIR=${FTP_PATH}/snapshots # The major number for the release. For release `3.0.2' this would be # `3' @@ -618,8 +621,7 @@ else # was. if [ $MODE_DIFFS -ne 0 ] && [ $LOCAL -ne 0 ]; then LAST_DATE=`cat ~/.snapshot_date-${BRANCH}` - LAST_DIR=~ftp/pub/gcc/snapshots/${BRANCH}-${LAST_DATE} - OLD_TARS=${LAST_DIR}/gcc-${BRANCH}-${LAST_DATE}.tar.bz2 + OLD_TARS=${SNAPSHOTS_DIR}/${BRANCH}-${LAST_DATE}/gcc-${BRANCH}-${LAST_DATE}.tar.bz2 fi fi |