当前位置: 首页>>代码示例>>PHP>>正文


PHP PEAR_PackageFileManager2::addUnixEol方法代码示例

本文整理汇总了PHP中PEAR_PackageFileManager2::addUnixEol方法的典型用法代码示例。如果您正苦于以下问题:PHP PEAR_PackageFileManager2::addUnixEol方法的具体用法?PHP PEAR_PackageFileManager2::addUnixEol怎么用?PHP PEAR_PackageFileManager2::addUnixEol使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PEAR_PackageFileManager2的用法示例。


在下文中一共展示了PEAR_PackageFileManager2::addUnixEol方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: list

$package->setDescription($description);
$package->setChannel('pear.limb-project.com');
$package->setAPIVersion($apiVersion);
$package->setReleaseVersion($version);
$package->setReleaseStability($state);
$package->setAPIStability($apiStability);
$package->setNotes($changelog);
$package->setPackageType('php');
$package->setLicense('LGPL', 'http://www.gnu.org/copyleft/lesser.txt');
foreach ($maintainers as $line) {
    list($role, $nick, $name, $email, $active) = explode(',', $line);
    $package->addMaintainer($role, $nick, $name, $email, $active);
}
$package->addReplacement('pear_limb', 'pear-config', '@PHP-BIN@', 'php_bin');
$package->addReplacement('pear_limb', 'pear-config', '@PHP-DIR@', 'php_dir');
$package->addReplacement('pear_limb.bat', 'pear-config', '@PHP-BIN@', 'php_bin');
$package->addReplacement('pear_limb.bat', 'pear-config', '@PHP-DIR@', 'php_dir');
$package->addUnixEol('pear_limb');
$package->addWindowsEol('pear_limb.bat');
$package->addRelease();
$package->addInstallAs('pear_limb', 'limb');
$package->addInstallAs('pear_limb.bat', 'limb.bat');
$package->setPhpDep('5.1.4');
$package->setPearinstallerDep('1.4.99');
$package->addPackageDepWithChannel('required', 'core', 'pear.limb-project.com', '0.1.3');
$package->generateContents();
$result = $package->writePackageFile();
if (PEAR::isError($result)) {
    echo $result->getMessage();
    exit(1);
}
开发者ID:knevcher,项目名称:limb,代码行数:31,代码来源:package.php

示例2: list

$package->setSummary($summary);
$package->setDescription($description);
$package->setChannel('pear.limb-project.com');
$package->setAPIVersion($apiVersion);
$package->setReleaseVersion($version);
$package->setReleaseStability($state);
$package->setAPIStability($apiStability);
$package->setNotes($changelog);
$package->setPackageType('php');
$package->setLicense('LGPL', 'http://www.gnu.org/copyleft/lesser.txt');
foreach ($maintainers as $line) {
    list($role, $nick, $name, $email, $active) = explode(',', $line);
    $package->addMaintainer($role, $nick, $name, $email, $active);
}
$package->addReplacement('pear_limb_unit', 'pear-config', '@PHP-BIN@', 'php_bin');
$package->addReplacement('pear_limb_unit', 'pear-config', '@PHP-DIR@', 'php_dir');
$package->addReplacement('pear_limb_unit.bat', 'pear-config', '@PHP-BIN@', 'php_bin');
$package->addReplacement('pear_limb_unit.bat', 'pear-config', '@PHP-DIR@', 'php_dir');
$package->addUnixEol('pear_limb_unit');
$package->addWindowsEol('pear_limb_unit.bat');
$package->addRelease();
$package->addInstallAs('pear_limb_unit', 'limb_unit');
$package->addInstallAs('pear_limb_unit.bat', 'limb_unit.bat');
$package->setPhpDep('5.1.4');
$package->setPearinstallerDep('1.4.99');
$package->generateContents();
$result = $package->writePackageFile();
if (PEAR::isError($result)) {
    echo $result->getMessage();
    exit(1);
}
开发者ID:knevcher,项目名称:korchasa_limb,代码行数:31,代码来源:package.php


注:本文中的PEAR_PackageFileManager2::addUnixEol方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。