mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
16 lines
506 B
Makefile
16 lines
506 B
Makefile
# is "origin" by default, but this clashes with the remote's name in some situations
|
|
CVS_HEAD_BRANCH ?= cvs-head
|
|
GIT_CVSIMPORT_EXTRA_ARGS ?=
|
|
|
|
all:
|
|
|
|
ifeq ($(VCS),cvs)
|
|
ifneq ($(GIT_BUDDY_DIR),)
|
|
git2cvs:
|
|
cvs up -dP
|
|
git -C $(GIT_BUDDY_DIR) cherry $(CVS_HEAD_BRANCH) HEAD | sed -n 's/^+ //p' | xargs -r -l1 git -C $(GIT_BUDDY_DIR) cvsexportcommit -w $(CWD) -c -p -v
|
|
endif
|
|
else ifeq ($(VCS),git)
|
|
cvs2git:
|
|
git cvsimport -o $(CVS_HEAD_BRANCH) -v -kk proj/$(PROJECT) $(GIT_CVSIMPORT_EXTRA_ARGS)
|
|
endif
|