commit: 91002e56bb0391bdc31716dd65b42151d230ff62 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> AuthorDate: Fri Jul 14 19:52:49 2017 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Fri Jul 14 19:52:58 2017 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=91002e56
Improve release process. HACKING | 6 ++++-- Makefile | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/HACKING b/HACKING index ed553f1..62bbd37 100644 --- a/HACKING +++ b/HACKING @@ -16,8 +16,10 @@ Testing things: $ sudo GK_SHARE="$PWD" ./genkernel initramfs --no-install --no-postclear --loglevel=2 Rolling a release: -- Bump the version in the main genkernel file. -- make dist # verify it can build. +- export PV="NEWVER" +- Bump the version in the main genkernel file: +- sed -i "/^GK_V=/s/='.*'$/='$PV'/" genkernel +- make dist UNCLEAN=1 # verify it can build. - git commit -s -a -m "Bump version to ${PV}" - git tag -s -a -m "Tag release v${PV}" v${PV} - make dist # Real tarball diff --git a/Makefile b/Makefile index e7f08a3..d18a3f2 100644 --- a/Makefile +++ b/Makefile @@ -28,8 +28,12 @@ clean: rm -f $(EXTRA_DIST) check-git-repository: +ifneq ($(UNCLEAN),1) git diff --quiet || { echo 'STOP, you have uncommitted changes in the working directory' ; false ; } git diff --cached --quiet || { echo 'STOP, you have uncommitted changes in the index' ; false ; } +else + @true +endif dist: verify-doc check-git-repository distclean $(EXTRA_DIST) mkdir "$(distdir)"