From 0beaba5aebb3b79c3fd7d94bb4b2341939b45548 Mon Sep 17 00:00:00 2001 From: Ben Baron Date: Sun, 5 Apr 2020 13:39:43 -0500 Subject: [PATCH] Fixed Makefile GL/version.h (echo -e to printf) The `echo -e` command is non-standard, and ends up printing a -e at the top of the version.h file. Switching it to `printf` works correctly and is the "correct" command to work in all shells. I also removed the GL/version.h file from the git cache, as it's in .gitignore but seems to have been accidentally checked in. --- GL/version.h | 3 --- Makefile | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 GL/version.h diff --git a/GL/version.h b/GL/version.h deleted file mode 100644 index 68a8b9b..0000000 --- a/GL/version.h +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once -#define GLDC_VERSION "1.1-104-gf2a3-dirty" - diff --git a/Makefile b/Makefile index 43f7327..143c240 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ KOS_CFLAGS += -ffast-math -Ofast -Iinclude GL/version.h: rm -f $@ - @echo -e '#pragma once\n#define GLDC_VERSION "$(shell git describe --abbrev=4 --dirty --always --tags)"\n' > $@ + @printf '#pragma once\n#define GLDC_VERSION "$(shell git describe --abbrev=4 --dirty --always --tags)"\n' > $@ link: $(KOS_AR) rcs $(TARGET) $(OBJS)