Closed mih closed 11 months ago
Here is a patch
diff --git a/img/Makefile b/img/Makefile
index 3dc7e9c..31ce6c1 100644
--- a/img/Makefile
+++ b/img/Makefile
@@ -13,7 +13,7 @@ clean:
# git-ignore each auto-rendered figure
.PHONY: ignore-%
ignore-%:
- @grep -q "^$*$$" .gitignore || { \
+ @tr -d '\r' < .gitignore | grep -q "^$*$$" || { \
echo "$*" >> .gitignore; echo "Ignore $@"; }
#
It simply fails to detect the matching existing records (with
grep
) and adds new ones that get windows line endings when committed.