From 377bcb5642cc7f6de6df677a047abf3b85bc82e4 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 5 Feb 2026 00:16:06 +0100 Subject: [PATCH 1/2] Guard for when defs CR_YEAR and BLDDATE are not supplied --- writeimg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/writeimg.c b/writeimg.c index 25304e1..f85eca8 100644 --- a/writeimg.c +++ b/writeimg.c @@ -16,6 +16,10 @@ #define VERSION "1.0.0" #endif +#ifndef CR_YEAR +#define CR_YEAR "2026" +#endif + // clang-format off const char help[] = "Usage:\n" @@ -124,7 +128,9 @@ static const struct option longopts[] = { int main(int argc, char *argv[]) { printf("%s version %s\n", basename(argv[0]), VERSION); +#ifdef BLDDATE printf("Build date: %s\n", BLDDATE); +#endif fprintf(stdout, copyright, CR_YEAR); printf("\n"); From 19806ab0b599dbf63afb14784e8e683ac99a14d1 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 5 Feb 2026 00:16:38 +0100 Subject: [PATCH 2/2] Repair broken install target --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 266780b..712d337 100644 --- a/Makefile +++ b/Makefile @@ -18,5 +18,4 @@ clean: rm -f *.o writeimg install: writeimg - install -c -s writeimg /usr/local/bin/writeimg - install -m 0755 $(PROG) $(DESTDIR)$(BINDIR)/$(PROG) + install -m 0755 writeimg /usr/local/bin/writeimg