svn: /pear/pear-core/trunk/PEAR/ Packager.php
| From: | Helgi Þormar Þorbjörnsson | Date: | Sun, 02 Aug 2009 16:20:23 +0000 |
| Subject: | svn: /pear/pear-core/trunk/PEAR/ Packager.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-56841@lists.php.net to get a copy of this message | ||
dufuz Sun, 02 Aug 2009 16:20:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286676
Log:
add svn support in there - Assume release-versionNR for now until a final decision has been made.
Changed paths:
U pear/pear-core/trunk/PEAR/Packager.php
Modified: pear/pear-core/trunk/PEAR/Packager.php
===================================================================
--- pear/pear-core/trunk/PEAR/Packager.php 2009-08-02 15:42:17 UTC (rev 286675)
+++ pear/pear-core/trunk/PEAR/Packager.php 2009-08-02 16:20:23 UTC (rev 286676)
@@ -163,6 +163,12 @@
$this->log(1, 'Tag the released code with "pear cvstag ' .
$main->getPackageFile() . '"');
$this->log(1, "(or set the CVS tag $cvstag by hand)");
+ } elseif (file_exists("$pkgdir/.svn")) {
+ $svnversion = preg_replace('/[^a-z0-9]/i', '.',
$pf->getVersion());
+ $svntag = "release-$svnversion";
+ $this->log(1, 'Tag the released code with "pear svntag ' .
+ $main->getPackageFile() . '"');
+ $this->log(1, "(or set the SVN tag $svntag by hand)");
}
} else { // this branch is executed for single packagefile packaging
$gen = &$pf->getDefaultGenerator();
@@ -182,6 +188,11 @@
$cvstag = "RELEASE_$cvsversion";
$this->log(1, "Tag the released code with `pear cvstag
$pkgfile'");
$this->log(1, "(or set the CVS tag $cvstag by hand)");
+ } elseif (file_exists("$pkgdir/.svn")) {
+ $svnversion = preg_replace('/[^a-z0-9]/i', '.',
$pf->getVersion());
+ $svntag = "release-$svnversion";
+ $this->log(1, "Tag the released code with `pear svntag
$pkgfile'");
+ $this->log(1, "(or set the SVN tag $svntag by hand)");
}
}