[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

debian/rules retag



 See if this isn't useful, if you are using `cvs-buildpackage'.  It's
 a `debian/rules' snippet:

# --------------------------------------------------------------

scsh_deb_version = $(shell dpkg-parsechangelog 2>/dev/null \
                     | sed -n -e 's/^Version: \([[:digit:]]\+:\)*\(.*\)$$/\2/p')

define check_cvs_status
	@echo "Checking CVS status for uncommited changes..."
	@if expr $$(cvs status 2>/dev/null	\
		    | grep '^File:'		\
	            | grep -vc 'Up-to-date')	\
           '>' 0;				\
	then					\
	   echo "There are uncommited changes."; \
	   exit 1;				\
	else					\
	   echo "done."				\
	   exit 0;				\
	fi
endef

retag:
	$(check_cvs_status)
	-cvs -Q tag -d debian_version_$(subst .,_,$(scsh_deb_version))
	cvs -Q tag debian_version_$(subst .,_,$(scsh_deb_version))

release:
	$(check_cvs_status)
	cvs-buildpackage -rsudo

.PHONY:	 retag release

# --------------------------------------------------------------


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: