Skip to content

Instantly share code, notes, and snippets.

@aanoaa
Created May 21, 2012 10:26
Show Gist options
  • Save aanoaa/2761721 to your computer and use it in GitHub Desktop.
Save aanoaa/2761721 to your computer and use it in GitHub Desktop.
석가모니달력 기사

NAME

bootstrap.pl - Easily jump into a project and start contributing

SYNOPSIS

$ script/bootstrap.pl

DESCRIPTION

프로젝트에 쉽게 참여하고 참여시키기 위해 사용하는 방법입니다.

  1. README.md 강화
  2. 모듈의존성은 Carton으로 해결
  3. script/bootstrap.pl의 사용

README.md

  • 어떻게 local 환경에서 초기화 하고 실행 시킬수 있는지 자세하게 기록

      $ ./script/bootstrap.pl         # 모듈이 ./local/ 디렉토리에 설치됨
      $ script/bootstrap.pl --db-init # database 초기화가 필요하다면..
      $ ./run
    
      (위에 처럼 동작하려면, `db/schema.sql` 이랑, `db/data.sql` 그리고 `run` 파일이 필요합니다.)
    

Carton

bootstrap.pl

ruby patterns from github codebase을 보고 github/github을 뒤져서 bootstrap-script을 찾아서 perl 버전으로 변경 했습니다.

  1. Carton이 있는지 체크
  2. Makefile.PL 의 md5 checksum 을 비교해서 변경 사항을 추적
  3. carton 명령어를 이용해서 의존성이 있는 모듈을 설치

RUN

README 에서 실행방법을 알아보고, Carton 을 이용하는 bootstrap.pl을 사용해서 모듈의존성을 해결한 담에 실행합니다.

AUTHOR

홍형석

SEE ALSO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment