~sourcemage/sorcery

806df14f7b7c2b2ff45453a0623069a1edaa020c — Thomas Orgis 3 years ago c42677d
Makefile: add devinst target

It makes sense to have the current date and the commit ID reported
by sorcery --version when having it installed from a git checkout.
Otherwise, it reports a wildly inaccurate stable release version which
confuses the developer testing differing branches/releases.
2 files changed, 8 insertions(+), 0 deletions(-)

M ChangeLog
M Makefile
M ChangeLog => ChangeLog +3 -0
@@ 1,3 1,6 @@
2021-02-26 Thomas Orgis <sobukus@sourcemage.org>
	* Makefile: added devinst target to mark installs from git checkout

2020-10-01 Thomas Orgis <sobukus@sourcemage.org>
	* protected: add /bin/login (!!)


M Makefile => Makefile +5 -0
@@ 29,7 29,12 @@ bump-devel:

bump: bump-$(BRANCH)

devinst: install
	date +%Y%m%d | tr '\n' - > /etc/sorcery/version
	git show --oneline | head -n 1 | cut -f 1 -d ' ' >> /etc/sorcery/version

#HELP:	install   - Install sorcery
#HELP:	devinst   - Install with version vom active branch
#HELP:	uninstall - Uninstall sorcery
#HELP:	convert   - Convert from Pre 0.8.x grimoire to new codex format
script-targets = install uninstall convert