Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not use the PEAR Installer (and require a network connection) to c…

…reate the PHAR.
  • Loading branch information...
commit ab2ef664147a874025612a8f1189b2a636f668d4 1 parent 3bdbcc5
@sebastianbergmann authored
View
56 build.xml
@@ -38,8 +38,8 @@
<delete file="${basedir}/build/phpcpd.bat"/>
<delete file="${basedir}/build/phpcpd.php"/>
<delete>
- <fileset dir="${basedir}/build" includes="**/*.phar"/>
- <fileset dir="${basedir}/build" includes="**/*.tgz"/>
+ <fileset dir="${basedir}/build" includes="*.phar"/>
+ <fileset dir="${basedir}/build" includes="*.tgz"/>
</delete>
</target>
@@ -210,52 +210,26 @@
<exec executable="bash" outputproperty="version">
<arg value="-c" />
- <arg value="pear remote-info pear.phpunit.de/phpcpd|grep Latest|sed 's/Latest //g'" />
+ <arg value="${basedir}/phpcpd.php --version | awk 'BEGIN { ORS = &quot;&quot;; } {print $2}'" />
</exec>
- <exec executable="pear">
- <arg value="config-set" />
- <arg value="auto_discover" />
- <arg value="1" />
- </exec>
-
- <exec executable="pear">
- <arg value="install" />
- <arg value="--force" />
- <arg value="--alldeps" />
- <arg value="--installroot" />
- <arg path="${basedir}/build/phar" />
- <arg value="pear.phpunit.de/phpcpd" />
- </exec>
-
- <delete dir="${basedir}/build/phar/tmp"/>
-
- <move todir="${basedir}/build/phar/ezc">
- <fileset dir="${basedir}/build/phar/usr/local/php-5.4/lib/php/ezc"/>
- </move>
-
- <move todir="${basedir}/build/phar/PHP">
- <fileset dir="${basedir}/build/phar/usr/local/php-5.4/lib/php/PHP"/>
- </move>
-
- <move todir="${basedir}/build/phar/SebastianBergmann">
- <fileset dir="${basedir}/build/phar/usr/local/php-5.4/lib/php/SebastianBergmann"/>
- </move>
-
- <move todir="${basedir}/build/phar/Symfony">
- <fileset dir="${basedir}/build/phar/usr/local/php-5.4/lib/php/Symfony"/>
- </move>
-
- <move todir="${basedir}/build/phar/TheSeer">
- <fileset dir="${basedir}/build/phar/usr/local/php-5.4/lib/php/TheSeer"/>
- </move>
+ <untar dest="${basedir}/build/phar" compression="gzip">
+ <fileset dir="${basedir}/build/dependencies">
+ <include name="**/*.tgz"/>
+ </fileset>
+ </untar>
- <delete dir="${basedir}/build/phar/usr"/>
+ <copy todir="${basedir}/build/phar/PHPCPD">
+ <fileset dir="${basedir}/src"/>
+ </copy>
<delete>
<fileset dir="${basedir}/build/phar">
+ <include name="**/autoload.php" />
<include name="**/Autoload.php" />
- <include name="**/*autoload.php" />
+ <include name="**/Autoload.php.in" />
+ <include name="**/package.sig" />
+ <include name="**/package.xml" />
</fileset>
</delete>
View
BIN  build/dependencies/Base-1.8.tgz
Binary file not shown
View
BIN  build/dependencies/ConsoleTools-1.6.1.tgz
Binary file not shown
View
BIN  build/dependencies/Finder-2.1.2.tgz
Binary file not shown
View
BIN  build/dependencies/FinderFacade-1.0.5.tgz
Binary file not shown
View
BIN  build/dependencies/PHP_Timer-1.0.4.tgz
Binary file not shown
View
BIN  build/dependencies/fDOMDocument-1.3.1.tgz
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.