httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-site httpd_roll_release
Date Sat, 10 Feb 2001 06:02:43 GMT
rbb         01/02/09 22:02:42

  Modified:    .        httpd_roll_release
  Log:
  More work to the httpd_roll_release script.  This allows us to keep
  a log file of what has happened so that we can check ourselves.  This
  also stops us from dumping everything to stdout.
  
  Revision  Changes    Path
  1.3       +34 -13    httpd-site/httpd_roll_release
  
  Index: httpd_roll_release
  ===================================================================
  RCS file: /home/cvs/httpd-site/httpd_roll_release,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -d -b -w -u -r1.2 -r1.3
  --- httpd_roll_release	2001/02/10 05:12:06	1.2
  +++ httpd_roll_release	2001/02/10 06:02:42	1.3
  @@ -1,12 +1,16 @@
   #!/bin/sh
   
  -if [ x$1 != x ]; then
  -    REPO=$1
  +if [ "x$1" = "xhelp" ]; then
  +    echo "Usage:  ./httpd_roll_release tag log_name"
  +    echo "tag        is the tag to use when checking out the repository"
  +    echo "log_name   is the name of a file to log the results to."
   else
  -    REPO="httpd-2.0"
  +    TAG=$1
   fi
   
  -TAG=$2
  +LOG_NAME=$2
  +
  +REPO="httpd-2.0"
   WORKING_DIR=`echo "$REPO" | sed -e 's/\-/_/g'`
   
   START_DIR=`echo "$PWD"`
  @@ -15,9 +19,11 @@
   echo "Checking out repository $REPO into $WORKING_DIR using tag $TAG"
   
   umask 022
  -cvs checkout -r $TAG -d $WORKING_DIR $REPO
  +echo Checking out httpd-2.0 > $LOG_NAME
  +cvs checkout -r $TAG -d $WORKING_DIR $REPO >> $LOG_NAME
   cd $WORKING_DIR/srclib
  -cvs checkout -r $TAG apr apr-util
  +echo "Checking out apr and apr-util" >> $LOG_NAME
  +cvs checkout -r $TAG apr apr-util >> $LOG_NAME
   cd $START_DIR/$WORKING_DIR
   
   # Make sure the master site's FAQ is up-to-date.  It doesn't hurt to do this
  @@ -32,7 +38,10 @@
   # Create the configure scripts
   echo "Creating the configure script"
   cd $START_DIR/$WORKING_DIR
  -./buildconf
  +
  +echo >> $LOG_NAME
  +echo "Running ./buildconf" >> $LOG_NAME
  +./buildconf >> $LOG_NAME
   rm -f ltconfig ltmain.sh config.sub config.guess
   cp /usr/local/share/libtool/ltconfig .
   cp /usr/local/share/libtool/ltmain.sh .
  @@ -41,18 +50,27 @@
   
   # Remove any files we don't distribute with our code
   rm -f STATUS
  -find . -name ".cvsignore" -exec rm {} \;
  -find . -type d -name "test" -exec rm -rf {} \;
  +
  +echo >> $LOG_NAME
  +echo "Removing files that we don't distribute" >> $LOG_NAME
  +find . -name ".cvsignore" -exec rm {} \; >> $LOG_NAME 
  +find . -type d -name "test" -exec rm -rf {} \; >> $LOG_NAME
  +find . -type d -name "CVS" -exec rm -rf {} \; >> $LOG_NAME
   
   # expand SSI directives in the manual
   echo "Making sure people can read the manual (expanding SSI's)"
  -( cd docs/manual ; chmod +x expand.pl ; ./expand.pl ; rm ./expand.pl )
  +
  +echo >> $LOG_NAME
  +echo "Making sure people can read the manual (expanding SSI's)" >> $LOG_NAME
  +( cd docs/manual ; chmod +x expand.pl ; ./expand.pl ; rm ./expand.pl ) >> $LOG_NAME
   
   # Time to roll the tarball
   echo "Rolling the tarballs"
   
   cd $START_DIR
  -tar cvf $WORKING_DIR.tar $WORKING_DIR
  +echo >> $LOG_NAME
  +echo "Rolling the tarball" >> $LOG_NAME
  +tar cvf $WORKING_DIR.tar $WORKING_DIR >> $LOG_NAME
   cp -p $WORKING_DIR.tar x$WORKING_DIR.tar
   gzip -9 $WORKING_DIR.tar
   mv x$WORKING_DIR.tar $WORKING_DIR.tar
  @@ -60,8 +78,11 @@
   
   # Test the tarballs
   echo "Testing the tarball"
  -gunzip -c $WORKKING_DIR.tar.gz | tar tvf -
  -zcat $WORKING_DIR.tar.Z | tar tvf -
  +
  +echo >> $LOG_NAME
  +echo "Testing the tarball $WORKING_DIR.tar.gz" >> $LOG_NAME
  +gunzip -c $WORKKING_DIR.tar.gz | tar tvf - >> $LOG_NAME
  +zcat $WORKING_DIR.tar.Z | tar tvf - >> $LOG_NAME
   
   # remember the CHANGES file
   echo "Copying the CHANGES file to this directory"
  
  
  

Mime
View raw message