Skip to content

Commit

Permalink
Minor touchups
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeBishop committed Dec 23, 2017
1 parent be3f5e3 commit 3688acd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Expand Up @@ -17,8 +17,8 @@ LINT_DIR := .lintcache/$(CURRENT_BRANCH)

lint_files:= $(addprefix $(LINT_DIR)/,$(addsuffix .lint,$(drafts)))

latest:: lint
lint:: lint-purge $(lint_files)
latest:: lint lint-purge
lint:: $(lint_files)

.PHONY: lint lint-purge

Expand All @@ -35,7 +35,7 @@ $(LINT_DIR)/%.lint: %.md $(LINT_DIR)
if ["$$draft_lint" != "$@" ] && \
[ -r "$$draft_lint" ] && [ "`cat "$$draft_lint"`" == "$$hash" ]; then \
cp "$$draft_lint" "$@"; \
echo "Reused lint from $$draft_lint"; \
echo "Reused lint of $$draft_lint for $@"; \
fi; \
done; \
if [ ! -r "$@" ] || [ "`cat "$@"`" != "$$hash" ]; then \
Expand Down Expand Up @@ -68,7 +68,7 @@ $(LINT_DIR)/%.lint: %.md $(LINT_DIR)
fi; \
fi;

lint-purge:: $(LINT_DIR)
lint-purge:: $(LINT_DIR) | lint
@MAYBE_OBSOLETE=`comm -13 <(git branch | sed -e 's,.*[ /],,' | sort | uniq) <(ls ".lintcache" | sed -e 's,.*/,,')`; \
for item in $$MAYBE_OBSOLETE; do \
rm -rf ".lintcache/$$item"; \
Expand Down

0 comments on commit 3688acd

Please sign in to comment.