home 首页 » 精彩日志 » 日志查看

The Date_Holidays package, a pack of splitters and a pear tree. - Ken Guest

原文地址:http://blogs.linux.ie/kenguest/2008/05/09/the-date_holidays-package-a-pack-of-splitters-and-a-pear-tree/

 2008-05-09 08:40:13 
本文尚未翻译 | 翻译

Some of you may know that I am a lead developer of the pear Date_Holidays package.

Date_Holidays helps you calculate the dates and titles of holidays and other special celebrations. This is all driver-based so it is easy to add new drivers that calculate a country’s holidays.
Until recently all of these drivers for individual countries were grouped together into one package.

We decided that this one package should be split into subpackages: one subpackage per region/country. Some advantages of this approach are that each driver / filter / subpackage gets it’s own stability and version number - we wouldn’t have to keep increasing the version number of Date_Holidays each time a new driver is added or when an existing driver gets a significant number of fixes.

Therefore we now have subpackages such as Date_Holidays_Austria, Date_Holidays_Brazil etc etc.

If you want to use the new set of [sub]packages, the simplest thing to do is uninstall the package that you have installed:

$ sudo pear uninstall Date_Holidays

and then install the new package, with a group directive which will install all subpackages:

$ sudo pear install Date_Holidays#all

收藏到网摘:

 
暂无评论
发表评论:
大名:*
网址:   http://sitename
评论:*