You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2002/02/09 03:00:51 UTC

cvs commit: jakarta-turbine-2 dist.sh tdk.jar build.xml

jvanzyl     02/02/08 18:00:51

  Modified:    .        build.xml
  Added:       .        dist.sh tdk.jar
  Log:
  - build now follows the same pattern as t3. the update-jars target has been
    added and all the necessary jars have been uploaded to the apache site.
  
  Revision  Changes    Path
  1.7       +34 -0     jakarta-turbine-2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-2/build.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- build.xml	8 Feb 2002 09:08:33 -0000	1.6
  +++ build.xml	9 Feb 2002 02:00:51 -0000	1.7
  @@ -38,6 +38,40 @@
           <pathelement location="${webmacro.jar}"/>
       </path>
   
  +  <!-- ================================================================== -->
  +  <!-- U P D A T E  J A R S                                               -->
  +  <!-- ================================================================== -->
  +
  +  <!-- Build classpath -->
  +  <path id="update.classpath">
  +    <pathelement location="tdk.jar"/>
  +  </path>
  +
  +  <target
  +    name="update-jars">
  +    
  +    <taskdef 
  +      name="httpget" 
  +      className="org.apache.tdk.task.Get">
  +      <classpath refid="update.classpath"/>
  +    </taskdef>
  +    
  +    <!-- If you need proxy support you'll have to manually add:
  +    
  +         proxyHost="x"
  +         proxyPort="y"
  +       
  +         We'll clean this up but it worked for a user behind a proxy.
  +    -->
  +    
  +    <httpget
  +      baseUrl="http://jakarta.apache.org/turbine/jars/"
  +      dest="${lib.repo}"
  +      dependencyFile="deps.list"
  +    />
  +
  +  </target>    
  +
       <!-- ================================================================== -->
       <!-- Prints useful build environment values                             -->
       <!-- ================================================================== -->
  
  
  
  1.1                  jakarta-turbine-2/dist.sh
  
  Index: dist.sh
  ===================================================================
  #!/bin/sh
  
  # Little script to help me make zip and tarballs
  # for the Turbine source, Torque, and the TDK.
  
  VERSION=2.1
  TARGET_DIR="/tmp/${VERSION}"
  
  # Clean out the target directory for the dist build.
  
  [ -d ${TARGET_DIR} ] && rm -rf ${TARGET_DIR}
  mkdir -p ${TARGET_DIR}
  
  # Do a clean build of turbine, and make sure the API
  # docs are created or they won't show up in the TDK
  
  ant clean
  ant
  ant javadocs
  ant docs
  
  # ------------------------------------------------------------------------
  # T D K
  # ------------------------------------------------------------------------
  
  (
    cd ../../jakarta-turbine-tdk/build
    ant production-dist
    cd ../dist
  
    # Tar gzipped file of the TDK.
    FILE="${TARGET_DIR}/tdk-${VERSION}.tar.gz"
    [ -f ${FILE} ] && rm -f ${FILE}
    tar cvzf ${FILE} tdk
  
    # Zipped file of Torque.
    FILE="${TARGET_DIR}/tdk-${VERSION}.zip"
    [ -f ${FILE} ] && rm -f ${FILE}
    zip -r ${FILE} tdk
  )  
  
  # ------------------------------------------------------------------------
  # T O R Q U E
  # ------------------------------------------------------------------------
  
  ant torque
  
  (
    cd ../bin/torque
    
    # Tar gzipped file of Torque.
    FILE="${TARGET_DIR}/torque-${VERSION}.tar.gz"
    [ -f ${FILE} ] && rm -f ${FILE}
    tar cvzf ${FILE} torque
   
    # Zipped file of Torque.
    FILE="${TARGET_DIR}/torque-${VERSION}.zip"
    [ -f ${FILE} ] && rm -f ${FILE}
    zip -r ${FILE} torque
  )  
  
  # ------------------------------------------------------------------------
  # T U R B I N E  S O U R C E
  # ------------------------------------------------------------------------
  
  # Get rid of all the backup files in
  # the src directory.
  find ../src -name '*~' -exec rm {} \;
  
  # Get rid of any conflict files in
  # the src directory.
  find ../src -name '\.#*' -exec rm {} \;
  
  (
    cd ..
    # Tar gzipped file of the source.
    FILE="${TARGET_DIR}/turbine-src-${VERSION}.tar.gz"
    [ -f ${FILE} ] && rm -f ${FILE}
    tar cvzf ${FILE} src
  
    # Zipped file of the source.
    FILE="${TARGET_DIR}/turbine-src-${VERSION}.zip"
    [ -f ${FILE} ] && rm -f ${FILE}
    zip -r ${FILE} src
  )
  
  # Create md5 checksums for everything
  # for safety.
  
  (
    cd ${TARGET_DIR}
    
    for i in `ls`
    do
      md5sum ${i} > ${i}.md5
    done
  )
  
  
  
  1.1                  jakarta-turbine-2/tdk.jar
  
  	<<Binary file>>
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>