]> granicus.if.org Git - php/commitdiff
- Remove checked-in or older version of phar.phar as we might not be able to open it
authorMarcus Boerger <helly@php.net>
Mon, 2 Jun 2008 15:50:42 +0000 (15:50 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 2 Jun 2008 15:50:42 +0000 (15:50 +0000)
ext/phar/Makefile.frag

index 1fc167387530546d18d89d04f9873570599f9909..d18136fc73c54c859ad4396accf2c302bc5b5e35 100755 (executable)
@@ -13,7 +13,8 @@ $(builddir)/phar.php: $(srcdir)/build_precommand.php $(srcdir)/phar/*.inc $(srcd
        $$PHP $(srcdir)/build_precommand.php > $(builddir)/phar.php
 
 $(builddir)/phar.phar: $(builddir)/phar.php $(srcdir)/phar/*.inc $(srcdir)/phar/*.php $(SAPI_CLI_PATH)
-       if test -x "$(PHP_EXECUTABLE)"; then \
+       -@test -f $(builddir)/phar.phar && rm -f $(builddir)/phar.phar
+       -@if test -x "$(PHP_EXECUTABLE)"; then \
                export PHP="$(PHP_EXECUTABLE)"; \
                export BANG="$(PHP_EXECUTABLE)"; \
        else \