manywaypark's Blog
개발, 검색, 함수

framewerk(오타 아님)는 일종의 autotools wrapper이다.

c/c++은 물론이고 javascript와 erlang도 지원하는 점이 맘에든다.

사용법은 참조링크에 쉽고 자세하게 나온다.

간단한 예제를 하나 들자면 erlang project에서 rebar 및 git을 사용할 경우 다음과 같이 한다.

$ fw-init --name myprj --template erlang-rebar --revision git

$ cd myprj

$ ./bootstrap

$ ./configure

$ make

지원되는 버전 관리 도구(revision에서 설정): git, svn, cvs

지원되는 개발 환경(template에서 설정): c, c++, erlang, erlang-rebar, java-mvn


refs: https://code.google.com/p/fwtemplates/


2014-11-11 추가: project configuration(version number 설정 등)은 fw-pkgin/config 파일을 편집한다.


2016-06-07 추가: 원래 프로젝트 페이지는 관리 안된지 좀 오래 인듯. 비교적 최근까지 관리되는 곳은 여기: https://github.com/dukesoferl/fw

또한 빌드 및 사용 법은, ./bootstrap -> ./build (--prefix=/usr/local) -> sudo make install 로 하면 좀더 간편하다.


happy hackin'

svn rep를 git의 submodule로 쓰기

tips & tricks 2013. 11. 17. 00:22 by manywaypark

git의 submodule로 svn 저장소를 쓸 수 있을까?

갑자기 궁금해져서 검색해봤다.

결론은  "쓸 수 없다"이다.


하지만 이전글에서도 잠시 언급했듯이, svn repo를 git repo로 변경후에 submodule로 지정하면 동일한 효과를 볼 수 있다.


ref: http://stackoverflow.com/questions/465042/is-it-possible-to-have-a-subversion-repository-as-a-git-submodule


happy hackin'



svn에서 git으로 옮겨타기

tips & tricks 2013. 4. 5. 23:44 by manywaypark

svn에서 git으로 소스트리 옮기기.

git-svn 설치 후 git remote add 후 push!

예를 들어 google code의 svn repo에서 github로 옮긴다면 다음과 같이 한다.

참고로 모든 변경 내역이 유지된다.

git svn clone http://[yourproject].googlecode.com/svn/trunk/path/to/code/

git remote add origin git@github.com:[youraccount]/[yourrepository].git

git push origin master


ref: http://bassistance.de/2009/08/20/getting-started-with-git-and-github-and-importing-from-subversion/


happy hackin'

macport에서 git-svn 쓰기

카테고리 없음 2012. 3. 12. 17:10 by manywaypark
windows의 cygwin에서는 git-core package만 설하면 git-svn도 같이 설치되어 편하게 사용할 수 있었는데, mac의 macport에서는 git-core만 설치하면 git-svn이 설치되지 않는다.
다음과 같이 설치하면 된다.
sudo port install git-core +svn 

/opt/local/libexec/git-core/git-svn이 깔린 것을 확인 할 수 있다.
git-svn을 직접 실행해도 되지만 아마 PATH에 없을 것이다. 아래와 같이 git svn의 형태로 실행시키면 된다.
git svn clone [-s] http://url.to.svn.repo/

refs: 
 http://alecthegeek.wordpress.com/2007/09/20/getting-git-svn-working-on-the-mac/
 http://rajshekhar.net/blog/archives/343-git-svn-on-macports.html

happy hackin' 
1. 설치
# apt-get install apache2 libapache2-svn subversion
 
2. 설정
2-1. svn repository 생성
# mkdir /var/lib/svn
# svnadmin create /var/lib/svn/[prj_name]
# chown -R www-data 
/var/lib/svn/[prj_name] 

2-2. /etc/apache2/mods-available/dav_svn.conf 수정
# dav_svn.conf - w/ ldap auth
# 2011-06-14 by manywaypark
<Location /svn>
  DAV svn

  SVNParentPath /var/lib/svn

  <LimitExcept OPTIONS REPORT>
    AuthType Basic
    AuthBasicProvider ldap
    AuthzLDAPAuthoritative on
    AuthName "SVN Authentication"
    AuthLDAPURL "ldap://localhost:389/ou=people,dc=localdomain?uid"
    AuthLDAPGroupAttribute memberUid
    AuthLDAPGroupAttributeIsDN off
    require ldap-group cn=svnusers,ou=group,dc=localdomain
  </LimitExcept>
</Location> 

2-3. apache 서버 설정 변경 및 재시작
# cd /etc/apache2/mods-enabled
# ln -s ../mods-available/ldap.load ldap.load
# ln -s ../mods-available/authnz_ldap.load authnz_ldap.load
# /etc/init.d/apache2 restart

3. 동작 확인
웹 브라우저나 SVN client에 http://[server-ip]/svn/[prj_name]을 입력해서 repository를 확인한다.
(repository를 보여주기전에 로그인 과정이 나와야한다.)

happy hackin'


 

svn(subversion) build

tips & tricks/Linux/Unix 2009. 9. 17. 16:38 by manywaypark
현재 최신 기준으로 배포 페이지에서 파일 두개(subversion-1.6.5.tar.bz2, subversion-deps-1.6.5.tar.bz2) 만 다운로드 받아서 같은 디렉토리에서 압축을 풀고, sudo make install 하면 된다.
mkdir svn_build
cd svn_build
wget http://subversion.tigris.org/downloads/subversion-1.6.5.tar.bz2
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.5.tar.bz2
tar xjf subversion-1.6.5.tar.bz2
tar xjf subversion-deps-1.6.5.tar.bz2
cd subversion-deps-1.6.5
make
sudo make install


예전에 한번 했던 일(오래된 redhat깔린 개발장비, 패키지관리 절대 안되는 박스에 svn 깔기)인데, 다시 다른 박스에서 하려니 헷갈렸다. subversion-deps를 안받았더니 이상한 경고메시지들이 떴는데 그 경고 메시지 따라 하나하나 하려니 머리에 쥐가났다. Orz.
DRY 차원에서 정리.
이번에는 라이브러리 몇개가 표준 경로에 있지 않아서 CPPFLAGS 환경변수 설정으로 경로를 추가해 줘야했다 (CPPFLAGS=-I/path/to/lib/include/ ./configure).
관리안되는 공용 서버는 정말 골칫덩어리다.

happy hackin'

trac plugin 설치 - TOC 예제

카테고리 없음 2007. 3. 19. 22:00 by manywaypark
trac을 사용해서 svn과 연동을 하면 제법 강력하고 편리한 형상/프로젝트 관리툴을 얻을 수 있다.
좋은 툴들이 언제나 그러하듯 plugin을 통해 확장이 가능하다.

이 문서에서 살펴볼 내용은 track-hacks에 있는 간단한 목차 plugin 하나를 설치하는 예제이다. trac은 이미 설치되어 있다고 가정한다.

먼저 python-setuptools 패키지가 설치되어 있지않다면 설치한다.
그리고, 플러그인이 설치될 디렉토리인 /var/trac/${PRJ_ENV}/plugins 디렉토리가 없으면 만든다.  물론 여기서 ${PRJ_ENV}는 trac이 설치된 환경이다. 한번도 플러그인을 설치하지 않았다면 아마 만들어야 할 것이다.

여기를 클릭해서 뜨는 페이지에서 플러그인을 다운로드 받는다.
다운로드 받은 디렉토리에서, 다음 명령어들을 입력한다.
~$ unzip tocmacro.zip
~$ cd tocmacro/0.9
~$ python setup.py bdist_egg
~$ cp dist/*.egg /var/trac/${PRJ_ENV}/plugins

아마도 압축을 풀고 python 빌드시스템 같은 것으로 배포가능한 바이너리를 빌드한 후에 trac 설치 디렉토리(프로젝트 디렉토리)에 설치하는 것같다(egg는 python 세계의 jar같은 것이다).

아래와 같이 하면 전체 시스템에 설치 된다고 하는데 내 경우엔 제대로 동작하지 않았다(그래서 그냥 위의 방법 대로, 프로젝트 수준에 설치했다).
~$ sudo python setup.py install   # global deployment

이제부턴 trac wiki에서 매크로 [[TOC]]를 아무 페이지에나 삽입하면, 멋진 목차를 볼 수 있을 것이다.

track-hacks에는 다양한 종류의 플러그인이 많이 있다. 이 예제를 바탕으로 하면 설치에 큰 무리가 없을 듯하다.

2009-07-16 세상은 날로 살기 좋아지고 있다 (tocmacro 홈페이지에 나오는 내용이다).
easy_install http://trac-hacks.org/svn/tocmacro/0.11

happy hackin'
1 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

04-26 21:14