5 # Update an SVN tree for a particular date.
12 if [ "x${REG_DO_CLEANUPS}" != "x" ]; then
19 ########################################################################
21 ########################################################################
24 # In case there are problems with updates (there were with CVS),
25 # creating a file called REMOVE in the REG_SRCDIR directory causes us
26 # to start with a clean tree each time.
33 # There's already a tree; do an update with the new revision.
35 echo "`date` svn update begun for id ${ID}, rev ${REV} (fix)"
36 echo svn update
--non-interactive --revision ${REV} >> $LOG
37 svn update
--non-interactive --revision ${REV} >> $LOG
39 echo "`date` svn update done"
41 echo "`date` svn update failed"
45 echo "`date` svn checkout begun for id ${ID}, rev ${REV}"
46 echo svn checkout
--non-interactive --revision ${REV} \
47 ${REG_SVN_REPO}/${BRANCHPATH} gcc
>> $LOG
48 svn checkout
--non-interactive --revision ${REV} \
49 ${REG_SVN_REPO}/${BRANCHPATH} gcc
>> $LOG
51 echo "`date` svn checkout done"
53 echo "`date` svn checkout failed"
59 # Touch generated files.
60 contrib
/gcc_update
--touch >> $LOG
63 ########################################################################
65 ########################################################################
69 # This is a simple way to stop a long regression search fairly cleanly;
70 # just touch a file called STOP.
73 echo "`date` $0 detected STOP file"
78 # Set up the log file.
79 REV
=`${REG_IDS} -f index -t rev ${ID}`
80 LOG
=${REG_SRCDIR}/logs/${BUGID}/${REV}.log
81 mkdir
-p ${REG_SRCDIR}/logs
/${BUGID}
85 # Get the branch for this patch.
86 BRANCH
=`${REG_IDS} -f index -t branch ${ID}`
87 if [ "${BRANCH}" = "error" ]; then
88 echo "`date` $0: cannot determine the SVN branch for id ${ID}"
92 if [ "${BRANCH}" = "trunk" ]; then
95 BRANCHPATH
=branches
/${BRANCH}
100 # Look for a patch that's needed for this revision to build.
101 FIX
=${REG_PATCHES}/${REV}.fix
102 echo "`date` looking for $FIX"
104 echo "`date` fix needed; checking whether it is already applied"
106 patch --dry-run -s -p0 -i $FIX < /dev
/null
> /dev
/null
2>&1
107 if [ $?
-eq 0 ]; then
108 echo "`date` applying fix"