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: maintainer-scripts/gcc_release


This has generated the last four (or so) snapshots, both off mainline and
the 3.3-branch without problems.

As far as I can see, this will now fail for prereleases, but this is less
due to my change but to actual problems of prereleases not being
reproducible (in a simple way), and I plan to address it in a more general
way in the near future.  Apart from that, it seems I'm done with my rework
of that script. :-)

Installed.

Gerald

2003-08-16  Gerald Pfeifer  <gerald@pfeifer.com>

 	* gcc_release (build_sources): Use two new variables EXPORTTAG and
 	EXPORTDATE to make the extraction of sources more transparent and
 	also allow snapshots (off mainline) without a tag.

Index: gcc_release
===================================================================
RCS file: /cvs/gcc/gcc/maintainer-scripts/gcc_release,v
retrieving revision 1.40
diff -r1.40 gcc_release
164c164,173
<     CVSBRANCH=$TAG
---
>     EXPORTTAG="-r${TAG}"
>     EXPORTDATE=""
>   else
>     if [ ${CVSBRANCH} != "HEAD" ]; then
>       EXPORTTAG="-r${CVSBRANCH}"
>     else
>       # HEAD is the default branch, no need to specify it.
>       EXPORTTAG=""
>     fi
>     EXPORTDATE="-D`date -u +"%Y-%m-%d %H:%M"` UTC"
168,172c177,189
<   inform "Retrieving release sources"
<   ${CVS} \
<        export -d "`basename ${SOURCE_DIRECTORY}`" \
<        -r ${CVSBRANCH} gcc || \
<     error "Could not retrieve release sources"
---
>   inform "Retrieving sources (cvs export ${EXPORTTAG} ${EXPORTDATE} gcc)"
>
>   if [ -z "${EXPORTTAG}" ]; then
>     ${CVS} export -d "`basename ${SOURCE_DIRECTORY}`" \
>        "${EXPORTDATE}" gcc || \
>       error "Could not retrieve sources"
>   elif [ -z "${EXPORTDATE}" ]; then
>     ${CVS} export -d "`basename ${SOURCE_DIRECTORY}`" \
>        "${EXPORTTAG}" gcc || \
>       error "Could not retrieve sources"
>   else
>     error "Cannot specify -r and -D at the same time"
>   fi



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