From ff0337c72c56549298ff5cff59587752509af4b4 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 5 Apr 2012 16:34:51 +0200 Subject: [PATCH] preprocessor fixes --- scripts/Makefile | 4 ++-- scripts/shader-cpp.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Makefile b/scripts/Makefile index 2118d706..a4bfcefb 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -1,9 +1,9 @@ INFILES = $(wildcard *.shader.in) GENERATEDFILES = $(patsubst %.shader.in,%.shader,$(INFILES)) -all: $(GENERATEDFILES) +all: shaderlist.txt $(GENERATEDFILES) -%.shader: shaderlist.txt %.shader.in +%.shader: %.shader.in ./shader-cpp.sh "$<" > "$@" clean: diff --git a/scripts/shader-cpp.sh b/scripts/shader-cpp.sh index 202987ad..3c1b83c0 100755 --- a/scripts/shader-cpp.sh +++ b/scripts/shader-cpp.sh @@ -106,7 +106,7 @@ preprocess() *0*) ;; *) - echo "$L" + echo "${L% }" ;; esac ;; -- 2.39.2