当各位看官费劲千辛万苦,终于把经过大量修改的脚本代码运行起来以后,没过多长时间,Bugzilla开发小组又发布了2.18版本,不仅更正了2.17中的大量Bug,而且功能增强不少,看得你心痒痒的,下载了一个最新版本,遇到了与以前同样的问题:修改大量的Perl脚本,真是一场恶梦!L!
鉴于这种情况,本人使用CVS系统来处理,供各位看官参考!!前提是,你已经搭建了一套CVSNT系统,如果你还没有,可以参考本人写的相关文档。
首先,从www.bugzilla.org下载最新的Bugzilla-2.17.6版本,解压后,使用WinCVS将Bugzilla代码Import到CVS系统中,并建立Mozilla开发分支和发行标记,注意:主分支是你自己使用的分支,根据你自己的需要进行修改;而Mozilla是开发旁分支,用于与Mozilla的Bugzilla开发小组进行版本同步更新,即当Bugzilla有大的改进时,你可以下载那个发行版本,加入到这个Mozilla开发分支当中,然后再与主分支合并,就可以得到我们需要的最新的,而且是修改过的Bugzilla版本了。这样,就能很好的避免每一个新版本的Bugzilla源代码都去进行费时费力的大量修改。哈哈,‘爽’就一个字!!当然,在合并的过程中,可能会遇到冲突问题,不过,至少比直接修改源代码来得容易三。
下面是本人使用的分支名称,仅供参考:
Branch => Mozilla (Vendor Tag)
Release => Ver-2-17-6 (Release Tag)
9 附录:(PerlModule.bat)
@echo off
@echo *******Start install perl module for Bugzilla***********
@echo ******************Ready Go!!!***********************
@echo ********* Install Bundle::Bugzilla Module ************
call ppm install Bundle::Bugzilla
@echo OK!!
@echo ********* Install Chart Module ************
call ppm install Chart
@echo OK!!
@echo ********* Install CGI Module ************
call ppm install CGI
@echo ********* Failed??:)
@echo ********* Download it from fllowing URL **********
@echo http://cpan.shellhung.org/authors/id/L/LD/LDS/CGI.pm-3.04.tar.gz
@echo ********* Use it with fllowing step **********
@echo ********* 1. Upzip this tar.gz
@echo ********* 2. Run the CMD.exe
@echo ********* 3. Into the upzipped tar.gz use dos command "cd"
@echo ********* 4. perl MakeFile.pl
@echo ********* 5. nmake
@echo ********* 6. nmake test
@echo ********* 7. nmake install
@echo ********* 8. OK!!
@echo ********* Install Date::Format Module ************
call ppm install Date::Format
@echo ********* Failed??:)
@echo ********* Download it from fllowing URL **********
@echo http://cpan.shellhung.org/authors/id/G/GB/GBARR/TimeDate-1.16.tar.gz
@echo ********* Use it with fllowing step **********
@echo ********* 1. Upzip this tar.gz
@echo ********* 2. Run the CMD.exe
@echo ********* 3. Into the upzipped tar.gz use dos command "cd"
@echo ********* 4. perl MakeFile.pl
@echo ********* 5. nmake
@echo ********* 6. nmake test
@echo ********* 7. nmake install
@echo ********* 8. OK!!
@echo ********* Install AppConfig Module **********
call ppm install AppConfig
@echo ********* Failed??:)
@echo ********* Download it from fllowing URL **********
@echo http://cpan.shellhung.org/authors/id/A/AB/ABW/AppConfig-1.55.tar.gz
@echo ********* Use it with fllowing step **********
@echo ********* 1. Upzip this tar.gz
@echo ********* 2. Run the CMD.exe
@echo ********* 3. Into the upzipped tar.gz use dos command "cd"
@echo ********* 4. perl MakeFile.pl
@echo ********* 5. nmake
@echo ********* 6. nmake test
@echo ********* 7. nmake install
@echo ********* 8. OK!!
@echo ********* Install Template::Toolkit Module **********
call ppm install Template::Toolkit
@echo ********* Failed??:)
@echo ********* Download it from fllowing URL **********
@echo http://cpan.shellhung.org/authors/id/A/AB/ABW/Template-Toolkit-2.12.tar.gz
@echo ********* Use it with fllowing step **********
@echo ********* 1. Upzip this tar.gz
@echo ********* 2. Run the CMD.exe
@echo ********* 3. Into the upzipped tar.gz use dos command "cd"
@echo ********* 4. perl MakeFile.pl
@echo ********* 5. nmake
@echo ********* 6. nmake test
@echo ********* 7. nmake install
@echo ********* 8. OK!!
@echo ********* Install Data::Dumper Module **********
call ppm install Data::Dumper
@echo OK!!
@echo ********* Install Date::Format Module **********
call ppm install Date::Format
@echo OK!!
@echo ********* Install DBI Module **********
call ppm install DBI
@echo OK!!
@echo ********* Install DBD::mysql Module **********
call ppm install DBD::mysql
@echo OK!!
@echo ********* Install File::Spec Module **********
call ppm install File::Spec
@echo OK!!
@echo ********* Install File::Temp Module **********
call ppm install File::Temp
@echo OK!!
@echo ********* Install Text::Wrap Module **********
call ppm install Text::Wrap
@echo OK!!
@echo ********* Install GD Module **********
call ppm install GD
@echo OK!!
@echo ********* Install GD::Graph Module **********
call ppm install GD::Graph
@echo OK!!
@echo ********* Install GD::Text::Align Module **********
call ppm install GD::Text::Align
@echo OK!!
@echo ********* Install PatchReader Module **********
call ppm install PatchReader
@echo OK!!
@echo ********* Install MIME::Tools Module **********
call ppm install MIME::Tools
@echo OK!!
@echo ********* Install MIME::Base64 Module **********
call ppm install MIME::Base64
@echo OK!!
@echo ********* Install Authen::SASL Module **********
call ppm install Authen::SASL
@echo OK!!
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/