]> granicus.if.org Git - php/commitdiff
* updated copyrights (thanks Colin)
authorStig Bakken <ssb@php.net>
Wed, 10 Jan 2001 01:01:59 +0000 (01:01 +0000)
committerStig Bakken <ssb@php.net>
Wed, 10 Jan 2001 01:01:59 +0000 (01:01 +0000)
* moved scripts to own directory (bug #7635)

12 files changed:
pear/DB.php
pear/HTTP.php
pear/Mail.php
pear/Makefile.in
pear/PEAR.php.in
pear/PEAR/Installer.php
pear/package.dtd
pear/run-tests.in [deleted file]
pear/scripts/pear.in [moved from pear/pear.in with 100% similarity]
pear/scripts/php-config.in [moved from pear/php-config.in with 100% similarity]
pear/scripts/phpextdist [moved from pear/phpextdist with 100% similarity]
pear/scripts/phpize.in [moved from pear/phpize.in with 100% similarity]

index d8a60ac801627967cc45fda1f690e065ea3321dc..788aed02fc803f609cc595485510fe950aa72e4b 100644 (file)
@@ -3,7 +3,7 @@
 // +----------------------------------------------------------------------+
 // | PHP version 4.0                                                      |
 // +----------------------------------------------------------------------+
-// | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
+// | Copyright (c) 1997-2001 The PHP Group                                |
 // +----------------------------------------------------------------------+
 // | This source file is subject to version 2.02 of the PHP license,      |
 // | that is bundled with this package in the file LICENSE, and is        |
index b66554925b289d67c2ce47caf3d6667aeb1f9f13..c1cc877c8d8e8659e0481e3a8d9270e07c24b83f 100644 (file)
@@ -3,7 +3,7 @@
 // +----------------------------------------------------------------------+
 // | PHP version 4.0                                                      |
 // +----------------------------------------------------------------------+
-// | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
+// | Copyright (c) 1997-2001 The PHP Group                                |
 // +----------------------------------------------------------------------+
 // | This source file is subject to version 2.02 of the PHP license,      |
 // | that is bundled with this package in the file LICENSE, and is        |
index 0240d449c0b505490cd9110c6fe6d76a1024c511..369f21529fd73a3b93b46df352b7d143216958dc 100644 (file)
@@ -3,7 +3,7 @@
 // +----------------------------------------------------------------------+
 // | PHP version 4.0                                                      |
 // +----------------------------------------------------------------------+
-// | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
+// | Copyright (c) 1997-2001 The PHP Group                                |
 // +----------------------------------------------------------------------+
 // | This source file is subject to version 2.02 of the PHP license,      |
 // | that is bundled with this package in the file LICENSE, and is        |
index b529a7b10767217fe00a773cd087050f79bc3b6a..6808a5f2c5dbf9f11a5ddd992d93019f0c12ed2d 100644 (file)
@@ -106,16 +106,15 @@ BUILD_FILES = \
        dynlib.m4 \
        acinclude.m4
 
-bin_PROGRAMS = phpize php-config pear
+bin_SCRIPTS = phpize php-config pear phpextdist
 
 install-build:
        $(mkinstalldirs) $(phpbuilddir) $(bindir) && \
        (cd $(top_srcdir) && cp $(BUILD_FILES) $(phpbuilddir))
 
 install-programs:
-       $(INSTALL) -m 755 $(srcdir)/phpextdist $(bindir)/phpextdist
-       for prog in $(bin_PROGRAMS); do \
-               $(INSTALL) -m 755 $$prog $(bindir)/$$prog; \
+       for prog in $(bin_SCRIPTS); do \
+               $(INSTALL) -m 755 scripts/$$prog $(bindir)/$$prog; \
        done
 
 HEADER_DIRS = \
@@ -143,14 +142,14 @@ install-headers:
 Makefile: Makefile.in $(top_builddir)/config.status
        (cd ..;CONFIG_FILES=pear/Makefile CONFIG_HEADERS= $(top_builddir)/config.status)
 
-pear: pear.in $(top_builddir)/config.status
-       (cd ..;CONFIG_FILES=pear/pear CONFIG_HEADERS= $(top_builddir)/config.status)
+scripts/pear: scripts/pear.in $(top_builddir)/config.status
+       (cd ..;CONFIG_FILES=pear/scripts/pear CONFIG_HEADERS= $(top_builddir)/config.status)
 
-phpize: phpize.in $(top_builddir)/config.status
-       (cd ..;CONFIG_FILES=pear/phpize CONFIG_HEADERS= $(top_builddir)/config.status)
+scripts/phpize: scripts/phpize.in $(top_builddir)/config.status
+       (cd ..;CONFIG_FILES=pear/scripts/phpize CONFIG_HEADERS= $(top_builddir)/config.status)
 
-php-config: php-config.in $(top_builddir)/config.status
-       (cd ..;CONFIG_FILES=pear/php-config CONFIG_HEADERS= $(top_builddir)/config.status)
+scripts/php-config: scripts/php-config.in $(top_builddir)/config.status
+       (cd ..;CONFIG_FILES=pear/scripts/php-config CONFIG_HEADERS= $(top_builddir)/config.status)
 
 PEAR.php: PEAR.php.in $(top_builddir)/config.status
        (cd ..;CONFIG_FILES=pear/PEAR.php CONFIG_HEADERS= $(top_builddir)/config.status)
index 06138fec7e439b6b81c823c2297160ec333a70c2..88d3ca474cab0c65fff93b8b2b2a40aca1aa674c 100644 (file)
@@ -3,7 +3,7 @@
 // +----------------------------------------------------------------------+
 // | PHP version 4.0                                                      |
 // +----------------------------------------------------------------------+
-// | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
+// | Copyright (c) 1997-2001 The PHP Group                                |
 // +----------------------------------------------------------------------+
 // | This source file is subject to version 2.0 of the PHP license,       |
 // | that is bundled with this package in the file LICENSE, and is        |
index 4d1f724ec61b52ca76155f38ffb5aba7dad2ace4..e5f1faec4a1bf662347459007285a67d1718735f 100644 (file)
@@ -3,7 +3,7 @@
 // +----------------------------------------------------------------------+
 // | PHP version 4.0                                                      |
 // +----------------------------------------------------------------------+
-// | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
+// | Copyright (c) 1997-2001 The PHP Group                                |
 // +----------------------------------------------------------------------+
 // | This source file is subject to version 2.02 of the PHP license,      |
 // | that is bundled with this package in the file LICENSE, and is        |
index cb1f7b0dea6b38c4f2641000c76d3e0792cbcf66..c4ecbed5ce4c7f48214c01a67783ce82a4761cff 100644 (file)
@@ -1,17 +1,12 @@
 <!--
-     $Id: package.dtd,v 1.1 2000-07-25 00:55:36 ssb Exp $
+     $Id: package.dtd,v 1.2 2001-01-10 01:01:52 ssb Exp $
 
      This is the PEAR package description, version 1.0.
      It should be used with the informal public identifier:
 
          "-//PHP Group//DTD PEAR Package 1.0//EN//XML"
 
-     Using XML namespaces is optional, but the namespace that should
-     be used for this DTD is:
-
-         "http://xmlns.php.net/pear/package".
-
-     Copyright (c) 1997, 1998, 1999, 2000 The PHP Group
+     Copyright (c) 1997-2001 The PHP Group             
 
      This source file is subject to version 2.02 of the PHP license,
      that is bundled with this package in the file LICENSE, and is
 <!ENTITY % global.atts         "id             ID      #IMPLIED">
 
 <!--============== attributes common to several elements ===================-->
+<!ENTITY % role.atts           "Role           (php|ext|test|doc) 'php'">
 <!ENTITY % extension.atts      "Debug          (on|off) 'off'
                                 ThreadSafe     (on|off) 'off'">
-<!ENTITY % format.atts         "Format         CDATA   #REQUIRED">
+<!ENTITY % format.atts         "Format         CDATA   #IMPLIED">
 
 <!--=============== ELEMENT: Package =======================================-->
 <!ELEMENT Package              (Name,Summary,Maintainer,Release,FileList)>
 <!ATTLIST Notes                        %global.atts;>
 
 <!--=============== ELEMENT: FileList ======================================-->
-<!ELEMENT FileList             (DestDir |
-                                Dir     | File     |
-                                ExtDir  | ExtFile  |
-                                DocDir  | DocFile)*>
+<!ELEMENT FileList             (Dir | File)*>
 <!ATTLIST FileList             %global.atts;>
 
-<!--=============== ELEMENT: DestDir =======================================-->
-<!ELEMENT DestDir              (#PCDATA)>
-<!ATTLIST DestDir              %global.atts;>
-
 <!--=============== ELEMENT: Dir ===========================================-->
 <!ELEMENT Dir                  (#PCDATA)>
 <!ATTLIST Dir                  %global.atts;>
 
 <!--=============== ELEMENT: File ==========================================-->
 <!ELEMENT File                 (#PCDATA)>
-<!ATTLIST File                 %global.atts;>
-
-<!--=============== ELEMENT: ExtDir ========================================-->
-<!ELEMENT ExtDir               (#PCDATA)>
-<!ATTLIST ExtDir               %global.atts;>
-
-<!--=============== ELEMENT: ExtFile =======================================-->
-<!ELEMENT ExtFile              (#PCDATA)>
-<!ATTLIST ExtFile              %global.atts;
-                               %extension.atts;>
-
-<!--=============== ELEMENT: DocDir ========================================-->
-<!ELEMENT DocDir               (#PCDATA)>
-<!ATTLIST DocDir               %global.atts;>
-
-<!--=============== ELEMENT: DocFile =======================================-->
-<!ELEMENT DocFile              (#PCDATA)>
-<!ATTLIST DocFile              %global.atts;
-                               %format.atts;>
+<!ATTLIST File                 %global.atts;
+                                %role.atts;
+                                %extension.atts;
+                                %format.atts;>
diff --git a/pear/run-tests.in b/pear/run-tests.in
deleted file mode 100755 (executable)
index 2ebf1a5..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-#!@prefix@/bin/php -f
-<?php // -*- C++ -*-
-
-$prefix = "@prefix@";
-$bindir = "@prefix@/bin";
-$php = "$bindir/php";
-$installdir = '@PEAR_INSTALLDIR@';
-$extdir = '@EXTENSION_DIR@';
-$abs_srcdir = '@abs_srcdir@/pear';
-
-$incpath = ".:$abs_srcdir/pear/tests:$abs_srcdir/pear/tests";
-
-$start = "*";
-if ($argc > 1) {
-    $start = implode(" ", $argv);
-}
-$fp = popen("find $start -name tests -type d -print", "r");
-if (!$fp) {
-    die("Could not run find!\n");
-}
-
-$failed = 0;
-$passed = 0;
-$tests = 0;
-
-while ($dir = trim(fgets($fp, 1024))) {
-//    print "DIRECTORY : $dir\n";
-    //print "dir=$dir\n";
-    $dp = opendir($dir);
-    while ($ent = readdir($dp)) {
-       if (substr($ent, 0, 1) == "." || substr($ent, -2) != ".t") {
-           continue;
-       }
-       $res = substr($ent, 0, -1) . 'r';
-       $out = substr($ent, 0, -1) . 'o';
-       $cmd = ("cd $dir; $php -d include_path=$incpath ".
-               "-d auto_prepend_file=none ".
-               "-d html_errors=no ".
-               "-f $ent 2>/dev/null | ".
-               "tee $out 2>/dev/null | cmp -s $res -");
-       //print "cmd=$cmd\n";
-       $err = 0;
-       system($cmd, &$err);
-       if ($err) {
-           print "FAILED    : ";
-           $failed++;
-       } else {
-           unlink("$dir/$out");
-           print "PASSED    : ";
-           $passed++;
-       }
-       $tests++;
-       print "$dir/$ent";
-       if ($err) {
-           print " (see $dir/$out)";
-       }
-       print "\n";
-    }
-    closedir($dp);
-}
-pclose($fp);
-
-$percent = $failed ? ($passed * 100) / $tests : 100;
-$percentstr = sprintf($percent < 10.0 ? "%.1f%%" : "%.0f%%", $percent);
-print "\n----------- SUMMARY -----------\n";
-printf("Tests performed: %d\n".
-       "Tests passed:    %d\n".
-       "Tests failed:    %d\n".
-       "Success rate:    %s\n",
-       $tests, $passed, $failed, $percentstr);
-if ($failed) {
-    die("
-One or more tests failed.  The file where you can find the output
-from the test (.o file) should be listed after the FAILED message.  The
-expected output can be found in the corresponding .r file, the source code
-for the test can be found in the .t file.
-
-Please compare the actual output with the expected output and see if
-it is a local configuration problem or an actual bug.  If it is a bug,
-please report it at http://bugs.php.net/.
-
-");
-}
-
-?>
similarity index 100%
rename from pear/pear.in
rename to pear/scripts/pear.in
similarity index 100%
rename from pear/phpextdist
rename to pear/scripts/phpextdist
similarity index 100%
rename from pear/phpize.in
rename to pear/scripts/phpize.in