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 Fri, 09 Feb 2001 20:39:14 GMT
rbb         01/02/09 12:39:14

  Added:       .        httpd_roll_release
  Log:
  First cut at a script that allows us to easily roll a release.  This is
  a bit too verbose, and it still requires manual intervention at the
  very end, to sign the tarball and copy it to dist.
  
  Revision  Changes    Path
  1.1                  httpd-site/httpd_roll_release
  
  Index: httpd_roll_release
  ===================================================================
  #!/bin/sh
  
  if [ x$1 != x ]; then
      REPO=$1
  else
      REPO="httpd-2.0"
  fi
  
  TAG=$2
  WORKING_DIR=`echo "$REPO" | sed -e 's/\-/_/g'`
  
  START_DIR=`echo "$PWD"`
  
  # Check out the correct repositories.
  echo "Checking out repository $REPO into $WORKING_DIR using tag $TAG"
  
  umask 022
  cvs checkout -r $TAG -d $WORKING_DIR $REPO
  cd $WORKING_DIR/srclib
  cvs checkout -r $TAG apr apr-util
  cd $START_DIR/$WORKING_DIR
  
  # Make sure the master site's FAQ is up-to-date.  It doesn't hurt to do this
  # all the time.  :-)
  echo "Updating the site's FAQ"
  (cd /www/www.apache.org/docs/misc ; cvs update)
  
  # Now update the FAQ in the tarball
  rm -f docs/manual/misc/FAQ*.html
  lynx -source http://www.apache.org/docs/misc/FAQ.html > docs/manual/misc/FAQ.html
  
  # Create the configure scripts
  echo "Creating the configure script"
  cd $START_DIR/$WORKING_DIR
  ./buildconf
  rm -f ltconfig ltmain.sh config.sub config.guess
  cp /usr/local/share/libtool/ltconfig .
  cp /usr/local/share/libtool/ltmain.sh .
  cp /usr/local/share/libtool/config.sub .
  cp /usr/local/share/libtool/config.guess .
  
  # 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 {} \;
  
  # 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 )
  
  # Time to roll the tarball
  echo "Rolling the tarballs"
  
  cd $START_DIR
  tar cvf $WORKING_DIR.tar $WORKING_DIR
  cp -p $WORKING_DIR.tar x$WORKING_DIR.tar
  gzip -9 $WORKING_DIR.tar
  mv x$WORKING_DIR.tar $WORKING_DIR.tar
  compress $WORKING_DIR.tar
  
  # Test the tarballs
  echo "Testing the tarball"
  gunzip -c $WORKKING_DIR.tar.gz | tar tvf -
  zcat $WORKING_DIR.tar.Z | tar tvf -
  
  # remember the CHANGES file
  echo "Copying the CHANGES file to this directory"
  cp $WORKING_DIR/CHANGES .
  
  # cleanup
  echo "Cleaning up my workspace"
  rm -fr $WORKING_DIR
  
  echo "Don't forget to make the tarballs available by copying them to the"
  echo "/www/dev.apache.org/dist directory, after signing them."
  
  
  

Mime
View raw message