Alois Mahdal
faf44ea6cb
Do not break with long releases
If release contains many commits and/or those commits contain many
changed files, the command line could grow past OS limit. Using stdin
avoids this.
7 vuotta sitten
Alois Mahdal
67bad3188f
Sweep internals deeper under carpet
Single underscore will be used for not-so-hidden names.
7 vuotta sitten
Alois Mahdal
e40240abd2
Prefix newline before each item in changelog
The changelog is intended to be edited, but it's more convenient this
way (especially if you're like me, using Vim and '{' and '}' as major
means of moving around.
7 vuotta sitten
Alois Mahdal
d59dc961d9
Do not fail if reldst == relsrc
Defining same reldst as relsrc is useless, but does not harm, so we can
let it slip through.
7 vuotta sitten
Alois Mahdal
772c962f77
Enable 'release' and 'vbump' targets directly in mkit/make
Usage of GNU Make really is just a sugar, so we should enable all
targets also for direct mkit/make invocation.
7 vuotta sitten
Alois Mahdal
6c5f673968
Add project name, tagline and LICENSE mention to all headers
7 vuotta sitten
Alois Mahdal
e103c6bca8
Add custom import function mkit_import()
To minimize code needed to import a module
7 vuotta sitten
Alois Mahdal
b44e804804
Use more compact `do`/`then` form
Drop the unnecessary and space-wasting requirement that `do` and `then`
must be alone on line. It's a thing of the past!
7 vuotta sitten
Alois Mahdal
c03e679e10
Fix style of local variable declarations
Decouple variable declarations so that each can have docstring.
In case of _relck() we also rename variable $relsrc to a more
context-specific term $oracle.
7 vuotta sitten
Alois Mahdal
1c48ab443c
Update and add function docstrings
7 vuotta sitten
Alois Mahdal
3b35bb9513
Remove unnecessary quotes and semicolons
Where not required, they only add visual cruft.
7 vuotta sitten
Alois Mahdal
5964bade7b
Do not use unknown variable
Probably leftover from slightly different implementation. There's
nothing to add to the error message now.
7 vuotta sitten
Alois Mahdal
99ff8e5296
Include changelog annotation message
Annotation message is meant as official release note, so including it
there makes sense.
(For example, GitHub will use it to create release note under Releases tab.)
8 vuotta sitten
Alois Mahdal
1364fa1496
Remove unused variable
8 vuotta sitten
Alois Mahdal
42eab359e4
Fix codename in tag annotation message
8 vuotta sitten
Alois Mahdal
1630a2752c
Allow overriding bump size (MKIT_BUMPSIZE)
If for some reason, user wants to skip a version or two, this will
override version bumping in vbump_* and some checks new and tag
creation in release_*.
8 vuotta sitten
Alois Mahdal
2b26c1c7f5
Make reldst optional
No need to bug everybody with relsrc/reldst
8 vuotta sitten
Alois Mahdal
dba6f86d34
Refactor versioning and release
Some parts got a bit confusing over time, also there was repetition.
In this commit:
* the release fact gathering routines have been moved to separate
module,
* some less useful routines have been removed,
* some internal interfaces have been changed to allow for more
readable code.
8 vuotta sitten
Alois Mahdal
71468517c9
Naming convention: Sort functions aplhabetically
8 vuotta sitten
Alois Mahdal
de35ae9ae1
Naming convention: Prefix internal functions with _
8 vuotta sitten
Alois Mahdal
dfb3fd3d69
Get rid of unnecessary global
8 vuotta sitten
Alois Mahdal
ebb7510cee
Move version to mkit.ini
8 vuotta sitten
Alois Mahdal
231e822f38
Move PRERELEASE to mkit.ini
8 vuotta sitten
Alois Mahdal
8c65327f70
Move RELSRC and RELDST parameters to mkit.ini
8 vuotta sitten
Alois Mahdal
c8e285db22
Use better qualified global names
Make it clear what's related to the packaged project.
8 vuotta sitten
Alois Mahdal
ba597b1934
Add label to mini-changelog
8 vuotta sitten
Alois Mahdal
fa997ed8aa
Add filename lists to mini-change-log template
8 vuotta sitten
Alois Mahdal
8b044c5abc
Fix tag format errors
v0.0.0 vs vv0.0.0 vs 0.0.0
8 vuotta sitten
Alois Mahdal
f38bf45bb1
Fix VERSION parsing from config.mk
8 vuotta sitten
Alois Mahdal
06219b61d0
Fix sed error when generating changelog data
8 vuotta sitten
Alois Mahdal
8fec923786
Add version bump/CL helper targets
8 vuotta sitten
Alois Mahdal
fe1646c7e2
Rewrite __release blocking condition system
New "functional-like" design makes it simpler to understand, extend,
re-order and re-use blocking conditions.
Also, the "old looks newer" condition was dropped as it's not really
necessary under such simplistic conditions.
8 vuotta sitten
Alois Mahdal
92173e208a
Clear incorrect modes
9 vuotta sitten
Alois Mahdal
a9b5e304eb
Move from fastfoo version 0.7.0+master.g7fde2b3
9 vuotta sitten