UBUNTU: [Packaging] rules: Remove startnewrelease target
There is 'cranky startnewrelease' now so the in-tree make target is no longer needed. Remove it. Jira: https://warthogs.atlassian.net/browse/KERNTT-711 Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com> Acked-by: Andrei Gherzan <andrei.gherzan@canonical.com> Acked-by: Andrea Righi <andrea.righi@canonical.com> Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
committed by
Paolo Pisati
parent
1bc090fb17
commit
dcc90f99e6
Vendored
-33
@@ -12,7 +12,6 @@ help:
|
||||
@echo " editconfigs : Edit core arch configs"
|
||||
@echo " printchanges : Print the current changelog entries (from git)"
|
||||
@echo " insertchanges : Insert current changelog entries (from git)"
|
||||
@echo " startnewrelease : Start a new changelog set"
|
||||
@echo " compileselftests : Only compile the selftests listed on ubuntu_selftests variable"
|
||||
@echo " runselftests : Run the selftests listed on ubuntu_selftests variable"
|
||||
@echo
|
||||
@@ -128,38 +127,6 @@ ifeq ($(do_fips_checks),true)
|
||||
endif
|
||||
$(DROOT)/scripts/checks/final-checks "$(DEBIAN)" "$(prev_fullver)" $(do_skip_checks)
|
||||
|
||||
.PHONY: startnewrelease
|
||||
startnewrelease:
|
||||
dh_testdir
|
||||
@[ -f "$(DEBIAN)/etc/update.conf" ] && . "$(DEBIAN)/etc/update.conf"; \
|
||||
if [ -n "$$BACKPORT_SUFFIX" ]; then \
|
||||
ver="$$(dpkg-parsechangelog -l"$$DEBIAN_MASTER/changelog" -SVersion)$${BACKPORT_SUFFIX/--/}.1"; \
|
||||
prev_ver="$$(dpkg-parsechangelog -l"$(DEBIAN)/changelog" -SVersion)"; \
|
||||
if [ "$${ver%.*}" = "$${prev_ver%.*}" ]; then \
|
||||
ver="$${ver%.*}.$$(( $${prev_ver##*.} +1 ))"; \
|
||||
fi; \
|
||||
else \
|
||||
rev=$(revision); \
|
||||
suffix=$$(echo "$${rev}" | sed 's/^[0-9]*\.[0-9]*//'); \
|
||||
abi=$${rev%%.*}; \
|
||||
upload=$${rev#*.}; \
|
||||
upload=$${upload%$${suffix}}; \
|
||||
ver=$(release)-$$((abi + 1)).$$((upload + 1))$${suffix}; \
|
||||
fi; \
|
||||
now="$(shell date -R)"; \
|
||||
echo "Creating new changelog set for $$ver..."; \
|
||||
echo -e "$(src_pkg_name) ($$ver) UNRELEASED; urgency=medium\n" > $(DEBIAN)/changelog.new; \
|
||||
echo " CHANGELOG: Do not edit directly. Autogenerated at release." >> \
|
||||
$(DEBIAN)/changelog.new; \
|
||||
echo " CHANGELOG: Use the printchanges target to see the curent changes." \
|
||||
>> $(DEBIAN)/changelog.new; \
|
||||
echo " CHANGELOG: Use the insertchanges target to create the final log." \
|
||||
>> $(DEBIAN)/changelog.new; \
|
||||
echo -e "\n -- $$DEBFULLNAME <$$DEBEMAIL> $$now\n" >> \
|
||||
$(DEBIAN)/changelog.new ; \
|
||||
cat $(DEBIAN)/changelog >> $(DEBIAN)/changelog.new; \
|
||||
mv $(DEBIAN)/changelog.new $(DEBIAN)/changelog
|
||||
|
||||
.PHONY: compileselftests
|
||||
compileselftests:
|
||||
# a loop is needed here to fail on errors
|
||||
|
||||
Reference in New Issue
Block a user