--- common/Makefile.common 2007/12/24 17:33:50 1.10 +++ common/Makefile.common 2008/03/12 04:42:51 1.11 @@ -5,7 +5,7 @@ # Copyright (C) 2004-2005 Red Hat, Inc. # Copyright (C) 2005 Fedora Foundation # -# $Id: Makefile.common,v 1.4 2007/11/02 22:32:27 slords Exp $ +# $Id: Makefile.common,v 1.10 2007/12/24 17:33:50 slords Exp $ # Define the common dir. # This needs to happen first. @@ -139,7 +139,7 @@ ARCHES = noarch i386 i586 i686 x86_64 ia PREP_ARCHES = $(addprefix prep-,$(ARCHES)) ## list all our bogus targets -.PHONY :: $(ARCHES) sources uploadsource upload export check build-check plague koji build test-srpm srpm tag force-tag verrel new clean patch prep compile install-short compile-short FORCE local +.PHONY :: $(ARCHES) commit sources uploadsource upload export check build-check plague koji build test-srpm srpm tag force-tag verrel new clean patch prep compile install-short compile-short FORCE local # The TARGETS define is meant for local module targets that should be # made in addition to the SOURCEFILES whenever needed @@ -398,6 +398,9 @@ rediff: clog: $(SPECFILE) @sed -n '/^%changelog/,/^$$/{/^%/d;/^$$/d;s/%%/%/g;p}' $(SPECFILE) | tee $@ +commit: clog + @cvs commit -F $? + help: @echo "Usage: make " @echo "Available targets are:" @@ -420,6 +423,7 @@ help: @echo " verrel Echo \"$(NAME)-$(VERSION)-$(RELEASE)\"" @echo " new Diff against last tag" @echo " clog Make a clog file containing top changelog entry" + @echo " commit Commit to CVS using the clog file as the log message" @echo " clean Remove srcs ($(SOURCEFILES)), export dir (cvs-$(TAG)) and srpm ($(NAME)-$(VERSION)-$(RELEASE).src.rpm)" @echo " patch SUFFIX= Create and add a gendiff patch file" @echo " rediff SUFFIX= Recreates a gendiff patch file, retaining comments"