- <taskdef resource="net/sf/antcontrib/antcontrib.properties">
- <classpath>
- <pathelement location="build/ant-contrib-0.6.jar"/>
- </classpath>
- </taskdef>
- <exec executable="svn" outputproperty="svnlog.out" >
- <arg line="info ."/>
- </exec>
- <propertyregex property="revision" input="${svnlog.out}" select="\1">
- <regexp pattern="Revision: ([0-9]*)"/>
- </propertyregex>
- <propertyregex property="date" input="${svnlog.out}" select="\1">
- <regexp pattern="Date: (.+\))"/>
- </propertyregex>
-
- <!-- MAIN -->
+ <available property="qunit" file="test/qunit" />
+ <available property="sizzle" file="src/sizzle" />
+
+ <target name="qunit-clone" unless="qunit">
+ <exec executable="git" outputproperty="git-qunit" >
+ <arg line="clone git://github.com/jquery/qunit.git test/qunit"/>
+ </exec>
+ <echo message="git clone qunit: ${git-qunit}" />
+ </target>
+ <target name="qunit-pull" if="qunit">
+ <exec executable="git" outputproperty="git-qunit" dir="test/qunit" >
+ <arg line="pull origin master"/>
+ </exec>
+ <echo message="git pull sizzle: ${git-qunit}" />
+ </target>
+ <target name="sizzle-clone" unless="sizzle">
+ <exec executable="git" outputproperty="git-sizzle" >
+ <arg line="clone git://github.com/jeresig/sizzle.git src/sizzle"/>
+ </exec>
+ <echo message="git clone sizzle: ${git-sizzle}" />
+ </target>
+ <target name="sizzle-pull" if="sizzle">
+ <exec executable="git" outputproperty="git-sizzle" dir="src/sizzle" >
+ <arg line="pull origin master"/>
+ </exec>
+ <echo message="git pull sizzle: ${git-sizzle}" />
+ </target>