[첫화면으로]Perl/모듈배포본

마지막으로 [b]

Perl /모듈을 배포본으로 만드는 법

1. h2xs 사용 예

Island::Plotting::Maps 모듈 배포본을 만드는 예1

$ 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

자동으로 생성된 아래 파일들을 필요에 따라 수정

Makefile 생성
$ perl Makefile.PL
또는
$ perl Makefile.PL PREFIX=~/Testing

테스트
$ make test

인스톨
$ make install

배포본 생성
$ make dist  # tar.gz 파일 생성
$ make tardist
$ make zipdist

2. 기타 & comments

뭐야 이게.. 무슨 말이야?? 욕한거야??
-- Zehn02 2008-10-31 5:32 pm

ㅎㅎㅎㅎㅎ 이건 무슨 테러십니까
-- Raymundo 2008-10-31 5:39 pm
이름:  
Homepage:
내용:
 


컴퓨터분류
각주:
1. Intermediate Perl, Chapter 16

마지막 편집일: 2012-2-11 12:25 am (변경사항 [d])
1135 hits | Permalink | 변경내역 보기 [h] | 페이지 소스 보기