diff options
author | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-27 01:20:45 +0000 |
---|---|---|
committer | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-27 01:20:45 +0000 |
commit | 1e24143788242a555e443369b445f9edeafa8e39 (patch) | |
tree | a94ca4889237b7909bc33a5264205e8c1db2fb0e /maintainer-scripts/gcc_release | |
parent | 08ea08a0321321b580e69c3349ee0728cc25483c (diff) | |
download | gcc-1e24143788242a555e443369b445f9edeafa8e39.tar.gz |
* gcc_release: Fix sanity check for argument of -p command-line
options. In snapshot mode, only generate diffs against the previous
snapshot if the user did not specify any old tarball explictly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80009 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts/gcc_release')
-rwxr-xr-x | maintainer-scripts/gcc_release | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index f6259714dc5..c21c1b94de1 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -540,7 +540,7 @@ while getopts "d:fr:u:t:p:s:l" ARG; do SCP=cp PATH=~:/usr/local/bin:$PATH;; p) OLD_TARS="${OLD_TARS} ${OPTARG}" - if [ -d ${OPTARG} ]; then + if [ ! -f ${OPTARG} ]; then error "-p argument must name a tarball" fi;; \?) usage;; @@ -615,9 +615,10 @@ else TAG=gcc-ss-`echo ${RELEASE} | tr '.' '_'` fi - # Building locally on gcc.gnu.org, we know what the last snapshot date - # was. - if [ $MODE_DIFFS -ne 0 ] && [ $LOCAL -ne 0 ]; then + # If diffs are requested when building locally on gcc.gnu.org, we (usually) + # know what the last snapshot date was and take the corresponding tarballs, + # unless the user specified tarballs explictly. + if [ $MODE_DIFFS -ne 0 ] && [ $LOCAL -ne 0 ] && [ -z "${OLD_TARS}" ]; then LAST_DATE=`cat ~/.snapshot_date-${BRANCH}` OLD_TARS=${SNAPSHOTS_DIR}/${BRANCH}-${LAST_DATE}/gcc-${BRANCH}-${LAST_DATE}.tar.bz2 fi |