변경사항 (가장 최근의 "일반적인 수정"부터)
(소소한 수정)
-53,9 +53,11 |
<div class="comments"> |
|
뭐야 이게.. 무슨 말이야?? 욕한거야?? <mysign([[Zehn02]],2008-10-31 5:32 pm)> |
|
: ㅎㅎㅎㅎㅎ 이건 무슨 테러십니까 <mysign([[Raymundo]],2008-10-31 5:39 pm)> |
<longcomments(100)> |
---- |
<trackbackreceived> |
|
</div> |
---- |
[[컴퓨터분류]] |
Perl /모듈을 배포본으로 만드는 법
1. h2xs 사용 예
Island::Plotting::Maps 모듈 배포본을 만드는 예
$ h2xs -XAn Island::Plotting::Maps
Defaulting to backwards compatibility with perl 5.8.3
If you intend this module to be compatible with earlier perl versions, please
specify a minimum perl version with the -b option.
Writing Island-Plotting-Maps/lib/Island/Plotting/Maps.pm
Writing Island-Plotting-Maps/Makefile.PL
Writing Island-Plotting-Maps/README
Writing Island-Plotting-Maps/t/Island-Plotting-Maps.t
Writing Island-Plotting-Maps/Changes
Writing Island-Plotting-Maps/MANIFEST
자동으로 생성된 아래 파일들을 필요에 따라 수정
- MANIFEST - 배포본에 들어있어야 할 파일들 목록
- README - 모듈 정보 개괄
- Changes - 변경 내역
- META.yml - YAML 포맷으로 된 모듈 정보
- Maps.pm - 실제 모듈
- t/Island-Plotting-Maps.t -
Test::More 모듈을 사용한 테스트 루틴들
Makefile 생성
$ perl Makefile.PL
또는
$ perl Makefile.PL PREFIX=~/Testing
테스트
$ make test
인스톨
$ make install
배포본 생성
$ make dist # tar.gz 파일 생성
$ make tardist
$ make zipdist
2. 기타 & comments
컴퓨터분류