Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

done a package all options

  • Loading branch information...
commit 1508148ea9a8d28fabf27c861e68c258f8223a04 1 parent b70e883
@dereklio authored
Showing with 48 additions and 28 deletions.
  1. +20 −24 README.md
  2. +0 −3  build.conf/build.properties
  3. +28 −1 build.xml
View
44 README.md
@@ -1,25 +1,21 @@
-# CSSTidy Pear Packager
-
-This phing build script is supposed to turn a CSSTidy scripts maintained by Cerdic at https://github.com/Cerdic/CSSTidy into a PEAR compatible package, and can be installed from a PEAR channel server.
-
-## Pre-packaged CSSTidy
-
-I distribute the pre-packaged version of CSSTidy in my own PEAR channel server at http://pear.deryck.co. To install CSSTidy from my server, you can execute:
-
- pear channel-discover http://pear.deryck.co
- pear install dereklio/csstidy
-
-## Build configuration
-
-Please note that the pear.name, csstidy.version, and csstidy.path and pear.stabaility are required parameters and must present in the command line while you are going to package the source codes.
-
- phing -Dpear.name=CSSTidy -Dcsstidy.version=1.1.0 -Dcsstidy.path=../csstidy -Dpear.stability=stable
- phing -Dpear.name=CSSTidy -Dcsstidy.version=1.2.0 -Dcsstidy.path=../csstidy -Dpear.stability=stable
- phing -Dpear.name=CSSTidy -Dcsstidy.version=1.3.0 -Dcsstidy.path=../csstidy -Dpear.stability=stable
- phing -Dpear.name=CSSTidy -Dcsstidy.version=1.3.1 -Dcsstidy.path=../csstidy -Dpear.stability=stable
- phing -Dpear.name=CSSTidy -Dcsstidy.version=1.4.0snapshot20101116 -Dcsstidy.path=../csstidy -Dpear.stability=alpha
-
-## Installing the PEAR package into a PEAR channel server (using pirum - http://www.pirum-project.org/)
-
- phing install -Dinstall.dir pear
+# CSSTidy Pear Packager
+
+This phing build script is supposed to turn a CSSTidy scripts maintained by Cerdic at https://github.com/Cerdic/CSSTidy into a PEAR compatible package, and can be installed from a PEAR channel server.
+
+## Pre-packaged CSSTidy
+
+I distribute the pre-packaged version of CSSTidy in my own PEAR channel server at http://pear.deryck.co. To install CSSTidy from my server, you can execute:
+
+ pear channel-discover http://pear.deryck.co
+ pear install dereklio/csstidy
+
+## Build configuration
+
+Please note that the pear.name, csstidy.version, and csstidy.path and pear.stabaility are required parameters and must present in the command line while you are going to package the source codes.
+
+ phing -Dpear.name=CSSTidy -Dcsstidy.path=../csstidy
+
+## Installing the PEAR package into a PEAR channel server (using pirum - http://www.pirum-project.org/)
+
+ phing install -Dinstall.dir pear
View
3  build.conf/build.properties
@@ -1,3 +0,0 @@
-csstidy.version=1.3.1
-
-package.stability=devel
View
29 build.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<project name="CSSTidy" description="CSSTidy PEAR Packager" default="package">
+<project name="CSSTidy" description="CSSTidy PEAR Packager" default="package-all">
<property file="build.conf/build.properties"/>
<taskdef classname="tasks.ParseParamsTask" name="parse-params" classpath="build.conf" />
<taskdef classname="tasks.FilelistGeneratorTask" name="filelist-generate" classpath="build.conf" />
@@ -11,6 +11,33 @@
</fileset>
</delete>
</target>
+ <target name="package-all">
+ <gitcheckout repository="${csstidy.path}" branchname="v1.1" gitPath="git" />
+ <phingcall target="package">
+ <property name="csstidy.version" value="1.1.0" override="true"/>
+ <property name="pear.stability" value="stable" override="true"/>
+ </phingcall>
+ <gitcheckout repository="${csstidy.path}" branchname="v1.2" gitPath="git" />
+ <phingcall target="package">
+ <property name="csstidy.version" value="1.2.0" override="true"/>
+ <property name="pear.stability" value="stable" override="true"/>
+ </phingcall>
+ <gitcheckout repository="${csstidy.path}" branchname="v1.3" gitPath="git" />
+ <phingcall target="package">
+ <property name="csstidy.version" value="1.3.0" override="true"/>
+ <property name="pear.stability" value="stable" override="true"/>
+ </phingcall>
+ <gitcheckout repository="${csstidy.path}" branchname="v1.3.1" gitPath="git" />
+ <phingcall target="package">
+ <property name="csstidy.version" value="1.3.1" override="true"/>
+ <property name="pear.stability" value="stable" override="true"/>
+ </phingcall>
+ <gitcheckout repository="${csstidy.path}" branchname="master" gitPath="git" />
+ <phingcall target="package">
+ <property name="csstidy.version" value="1.4.0snapshot20101116" override="true"/>
+ <property name="pear.stability" value="alpha" override="true"/>
+ </phingcall>
+ </target>
<target name="package" depends="clean" description="Package CSSTidy from sources into a PEAR package">
<parse-params csstidy="${csstidy.path}" output="csstidy_options.php"/>
<mkdir dir="tmp/CSSTidy"/>
Please sign in to comment.
Something went wrong with that request. Please try again.