Skip to content

Commit 91002e5

Browse files
committed
Improve release process.
1 parent 43621dc commit 91002e5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

HACKING

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ Testing things:
1616
$ sudo GK_SHARE="$PWD" ./genkernel initramfs --no-install --no-postclear --loglevel=2
1717

1818
Rolling a release:
19-
- Bump the version in the main genkernel file.
20-
- make dist # verify it can build.
19+
- export PV="NEWVER"
20+
- Bump the version in the main genkernel file:
21+
- sed -i "/^GK_V=/s/='.*'$/='$PV'/" genkernel
22+
- make dist UNCLEAN=1 # verify it can build.
2123
- git commit -s -a -m "Bump version to ${PV}"
2224
- git tag -s -a -m "Tag release v${PV}" v${PV}
2325
- make dist # Real tarball

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ clean:
2828
rm -f $(EXTRA_DIST)
2929

3030
check-git-repository:
31+
ifneq ($(UNCLEAN),1)
3132
git diff --quiet || { echo 'STOP, you have uncommitted changes in the working directory' ; false ; }
3233
git diff --cached --quiet || { echo 'STOP, you have uncommitted changes in the index' ; false ; }
34+
else
35+
@true
36+
endif
3337

3438
dist: verify-doc check-git-repository distclean $(EXTRA_DIST)
3539
mkdir "$(distdir)"

0 commit comments

Comments
 (0)