summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Orgis2021-02-26 13:48:30 +0100
committerThomas Orgis2021-02-26 13:48:30 +0100
commit806df14f7b7c2b2ff45453a0623069a1edaa020c (patch)
tree8cb0517c37cb0f6ece9bdb60286bfe5bd9487922
parentc42677de4c5321d09f0889a220deec1bafdd573d (diff)
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.
-rw-r--r--ChangeLog3
-rw-r--r--Makefile5
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 40bf8b29..1955b994 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 (!!)
diff --git a/Makefile b/Makefile
index 9ceb3727..e90581ec 100644
--- a/Makefile
+++ b/Makefile
@@ -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