diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2017-07-14 12:52:49 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-07-14 12:52:58 -0700 |
commit | 91002e56bb0391bdc31716dd65b42151d230ff62 (patch) | |
tree | 90e42a563c05a95791e175a1a1559bceb1acb8cd | |
parent | modules_load: more filesystems. (diff) | |
download | genkernel-91002e56bb0391bdc31716dd65b42151d230ff62.tar.gz genkernel-91002e56bb0391bdc31716dd65b42151d230ff62.tar.bz2 genkernel-91002e56bb0391bdc31716dd65b42151d230ff62.zip |
Improve release process.
-rw-r--r-- | HACKING | 6 | ||||
-rw-r--r-- | Makefile | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -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 @@ -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)" |