+2004-03-27 Gerald Pfeifer <gerald@pfeifer.com>
+
+ * 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.
+
2004-03-25 Gerald Pfeifer <gerald@pfeifer.com>
* gcc_release (FTP_PATH): Use /var/ftp instead of ~ftp, and
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;;
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