forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From che...@apache.org
Subject cvs commit: xml-forrest/src/targets patch.xml
Date Tue, 30 Sep 2003 16:55:26 GMT
cheche      2003/09/30 09:55:26

  Modified:    .        status.xml build.xml
  Added:       src/targets patch.xml
  Log:
  Patch Facility for contributors. This comes from Ant's project.
  Submitted by:	Jan Materne
  
  Revision  Changes    Path
  1.234     +15 -1     xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.233
  retrieving revision 1.234
  diff -u -r1.233 -r1.234
  --- status.xml	30 Sep 2003 15:13:15 -0000	1.233
  +++ status.xml	30 Sep 2003 16:55:26 -0000	1.234
  @@ -25,6 +25,20 @@
   
     <changes>
       <release version="0.6-dev" date="unreleased">
  +      <action dev="JJP" type="fix" context="core" >
  +          Added default translation for menu on fresh site so it is used 
  +	  when the user local can not be found.
  +          Syncronized some I18n labels after a modification on fresh-site.
  +      </action>
  +      <action dev="JJP" type="add" context="core"
  +        due-to="Jan Materne"  due-to-email="Jan.Materne@rzf.fin-nrw.de" >
  +          Patch facility to be used by any contributor (From Ant's project).
  +	  To use it run "build.[sh|bat] patch".
  +      </action>
  +      <action dev="JJP" type="update" context="core"
  +        due-to="Jan Materne"  due-to-email="Jan.Materne@rzf.fin-nrw.de" >
  +          Added German Translation for menu.
  +      </action>
         <action dev="NKB" type="fix" context="core"
           due-to="Eric BURGHARD"  due-to-email="eburghar@free.fr" >
             Patched directory2book.xsl to be able to serve raw documents from the 
  
  
  
  1.75      +9 -1      xml-forrest/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/build.xml,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- build.xml	12 Sep 2003 08:14:18 -0000	1.74
  +++ build.xml	30 Sep 2003 16:55:26 -0000	1.75
  @@ -611,7 +611,15 @@
       <include name="v20a/*.dtdx"/>
     </xslt>
   
  -</target>
  +  </target>
  +
  +
  +  <!-- =================================================================== -->
  +  <!-- Use Apache Ant to generate a patch file                             -->
  +  <!-- =================================================================== -->
  +    <target name="patch">
  +      <ant antfile="src/targets/patch.xml" target="patchpackage"/>
  +    </target>
   
   
   </project>
  
  
  
  1.1                  xml-forrest/src/targets/patch.xml
  
  Index: patch.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <!--
    =======================================================================
     Use Apache Ant to generate a patch file for Apache Forrest.
  
     Copyright (c) 2003 The Apache Software Foundation.  All rights
     reserved.
  
    =======================================================================
  -->
  <project name="create-patch" default="patchpackage" basedir=".">
      <property environment="env"/>
      <property name="patch.package" value="patch.tar.gz"/>
      <property name="patch.file" value="patch.txt"/>
  
      <condition property="cvs.found">
          <or>
              <available file="cvs" filepath="${env.PATH}"/>
              <available file="cvs.exe" filepath="${env.PATH}"/>
              <available file="cvs.exe" filepath="${env.Path}"/>
          </or>
      </condition>
  
      <target name="createpatch">
          <fail unless="cvs.found"
                message="You need a version of cvs to create the patch"/>
          <cvs command="-q diff -u" output="${patch.file}"/>
      </target>
  
      <target name="newfiles" depends="createpatch">
          <delete file="${patch.package}"/>
          <cvs command="-q diff -N" output="${patch.file}.tmp"/>
          <replace file="${patch.file}.tmp" token="? " value=""/>
          <tstamp>
              <format property="year" pattern="yyyy"/>
          </tstamp>
          <fileset dir="${basedir}"
              includesfile="${patch.file}.tmp"
              excludes="${patch.file}.tmp,${patch.file}"
              id="no.copyright.set">
              <not>
                  <and>
                      <contains text="Copyright"/>
                      <contains text="Apache Software Foundation"/>
                      <contains text="${year}"/>
                  </and>
              </not>
          </fileset>
          <pathconvert pathsep="${line.separator}"
              setonempty="false"
              property="no.copyright"
              refid="no.copyright.set"/>
              <!-- Commented out until someone decides if we need Copyright in all forrest
pages
  	    <fail if="no.copyright"
              message="Please assign the Apache Copyright (for ${year}) to these files and
retry:${line.separator}${no.copyright}"/>
  	    -->
      </target>
  
      <target name="patchpackage" depends="newfiles">
          <tar basedir="${basedir}"
              tarfile="${patch.package}"
              compression="gzip"
              includesfile="${patch.file}.tmp"
              excludes="${patch.file}.tmp"/>
          <delete file="${patch.file}.tmp"/>
      </target>
  </project>
  
  
  

Mime
View raw message