forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/etc/cocoon_upgrade upgrade_cocoon_jars.sh
Date Sat, 24 May 2003 05:20:33 GMT
jefft       2003/05/23 22:20:33

  Modified:    etc/cocoon_upgrade upgrade_cocoon_jars.sh
  Log:
  Copy endorsed jars
  
  Revision  Changes    Path
  1.6       +26 -1     xml-forrest/etc/cocoon_upgrade/upgrade_cocoon_jars.sh
  
  Index: upgrade_cocoon_jars.sh
  ===================================================================
  RCS file: /home/cvs/xml-forrest/etc/cocoon_upgrade/upgrade_cocoon_jars.sh,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- upgrade_cocoon_jars.sh	24 May 2003 05:13:36 -0000	1.5
  +++ upgrade_cocoon_jars.sh	24 May 2003 05:20:33 -0000	1.6
  @@ -39,7 +39,7 @@
     FLIB_ENDORSED=$FORREST/lib/endorsed
   elif [ "$UPGRADE_TYPE" = "testing" ]; then
     FLIB=$FDIST/WEB-INF/lib
  -  FLIB_ENDORSED=$FDIST/WEB-INF/lib/endorsed
  +  FLIB_ENDORSED=$FDIST/lib/endorsed
   fi
   
   function checkdir()
  @@ -116,6 +116,29 @@
   
   }
   
  +function upgrade_endorsed()
  +{
  +  pushd . 
  +  cd $FLIB_ENDORSED
  +  case $UPGRADE_TYPE in
  +    "testing")
  +    rm xalan* xerces* xml-apis*
  +    ;;
  +    "real")
  +    cvsdo remove -f xalan* xerces* xml-apis*
  +    rm xalan* xerces* xml-apis*
  +    ;;
  +  esac
  +
  +  cp $CLIB/{xalan,xerces,xml-apis}* .
  +
  +  if [ "$UPGRADE_TYPE" = "real" ]; then
  +    cvs add -kb {xalan,xerces,xml-apis}* &
  +  fi
  +  popd
  +
  +}
  +
   
   echo "Performing $UPGRADE_TYPE upgrade. New jars copied to:"
   echo "  $FLIB"
  @@ -126,6 +149,8 @@
   sanity_check
   
   upgrade_neko
  +upgrade_endorsed
  +exit
   
   #set -vx
   #avalon-framework-4.1.3.jar
  
  
  

Mime
View raw message