From 76091d246a3e4d72526c26af600847991fa583b8 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 4 Dec 2024 17:20:28 +0000 Subject: bin: Add --version flag. * ravanan/config.scm.in (%project, %version): New variables. * Makefile (version): New variable. (%.scm): Substitute %project and %version too. * bin/ravanan: Import (ravanan config). (%options): Add --version. (print-usage): Document it. (main): Implement it. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1eaecfa..0201655 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ # along with ravanan. If not, see . project = ravanan +version = 0.1.0 GUILD ?= guild GUILE ?= guile @@ -47,7 +48,7 @@ godir = $(libdir)/guile/$(guile_effective_version)/site-ccache all: $(objects) $(config_file) %.scm: %.scm.in - $(SED) 's|@NODE@|$(NODE)|' $< > $@ + $(SED) -e 's|@PROJECT@|$(project)|' -e 's|@VERSION@|$(version)|' -e 's|@NODE@|$(NODE)|' $< > $@ %.go: %.scm $(config_file) GUILE_AUTO_COMPILE=0 $(GUILD) compile -L . -o $@ $< -- cgit v1.2.3