jw-pkg/make/git-cvs-bridge.mk
Jan Lindemann c713793e16 srcdist.mk: Make wd-upload work with upload-defs.mk
wd-upload doesn\'t work at all, because it clashed with rpmdist.mk defining
stuff used by the upload-*.mk files. The RPM-side of things is left untested.

Signed-off-by: Jan Lindemann <jan@janware.com>
2019-01-08 10:53:32 +00:00

15 lines
449 B
Makefile

# is "origin" by default, but this clashes with the remote's name in some situations
CVS_HEAD_BRANCH ?= cvs-head
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)
endif