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]

PATCH: CVSROOT/htdocs-checkout


If this works (and it seems so ;-) ), all of our files in htdocs are
now preprocessed automatically after begin committed:

  Use bin/preprocess instead of cp to update the preprocessed tree.
  EGCS -> GCC conversions, once more.

Jason, I have to say that the infrastructure you created on sourceware,
and this script in particular, are really very nice and easy to maintain.

Installed.

Gerald

Index: htdocs-checkout
===================================================================
RCS file: /cvs/gcc/CVSROOT/htdocs-checkout,v
retrieving revision 1.16
retrieving revision 1.18
diff -c -3 -p -r1.16 -r1.18
*** htdocs-checkout	1999/10/09 09:27:05	1.16
--- htdocs-checkout	2000/02/08 09:46:58	1.18
*************** STRIPPED_SUBDIR_NAME=`echo $SUBDIR_NAME 
*** 24,31 ****
  FILENAMES_WITHOUT_VERSIONS=`echo $2 | sed -e 's|,[^ ]*||g' -e 's|[^ ]* ||'`
  FILENAMES_WITH_VERSIONS=`echo $2 | sed 's|[^ ]*||'`
  
! # SUBDIR_NAME looks like             wwwdocs/htdocs/egcs-1.2
! # STRIPPED_SUBDIR_NAME looks like    egcs-1.2
  # FILENAMES_WITHOUT_VERSIONS is like index.html changes.html
  # FILENAMES_WITH_VERSIONS is like    index.html,1.6 changes.html,1.2
  
--- 24,31 ----
  FILENAMES_WITHOUT_VERSIONS=`echo $2 | sed -e 's|,[^ ]*||g' -e 's|[^ ]* ||'`
  FILENAMES_WITH_VERSIONS=`echo $2 | sed 's|[^ ]*||'`
  
! # SUBDIR_NAME looks like             wwwdocs/htdocs/gcc-2.95
! # STRIPPED_SUBDIR_NAME looks like    gcc-2.95
  # FILENAMES_WITHOUT_VERSIONS is like index.html changes.html
  # FILENAMES_WITH_VERSIONS is like    index.html,1.6 changes.html,1.2
  
*************** for i in $FILENAMES_WITHOUT_VERSIONS
*** 66,72 ****
  do
    if [ -f "$i" ]
    then
!     cp $i $DEST_DIR/$STRIPPED_SUBDIR_NAME
    fi
  done
  
--- 66,72 ----
  do
    if [ -f "$i" ]
    then
!     /www/gcc/bin/preprocess $STRIPPED_SUBDIR_NAME/$i
    fi
  done
  
*************** fileversion=`echo $firstfile | sed 's|^.
*** 81,91 ****
  QMAILHOST=gcc.gnu.org
  export QMAILHOST
  (
!   echo Files modified in the EGCS repository.  Log entry:
    echo ""
    /usr/local/bin/cvs log -N -r$fileversion $filename | sed -e '1,/^date: /d' -e '$d'
  ) |
    /bin/mail -s "$SUBDIR_NAME $FILENAMES_WITHOUT_VERSIONS"  \
!             egcs-cvs-wwwdocs@gcc.gnu.org
  
  exit 0
--- 81,91 ----
  QMAILHOST=gcc.gnu.org
  export QMAILHOST
  (
!   echo Files modified in the GCC repository.  Log entry:
    echo ""
    /usr/local/bin/cvs log -N -r$fileversion $filename | sed -e '1,/^date: /d' -e '$d'
  ) |
    /bin/mail -s "$SUBDIR_NAME $FILENAMES_WITHOUT_VERSIONS"  \
!             gcc-cvs-wwwdocs@gcc.gnu.org
  
  exit 0



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