aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-07-24 18:41:30 +0200
committerGitHub <noreply@github.com>2020-07-24 19:41:30 +0300
commita3afb88f1b06225aca841b3c65b401d144643abe (patch)
tree78747725f3028344af45767ff3b105c258d9b464 /Makefile
parent7744b36e56aefc16fce321b1bf0d8614a470d894 (diff)
downloadgitea-a3afb88f1b06225aca841b3c65b401d144643abe.tar.gz
gitea-a3afb88f1b06225aca841b3c65b401d144643abe.zip
Remove unused svg and improve 'make svg-check' (#12311)
- Remove unused source SVG gitea-settings (it was changed to ociticon) - Improve 'make svg-check' to also detect added files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 62d466eb40..4ee3e9b704 100644
--- a/Makefile
+++ b/Makefile
@@ -628,9 +628,10 @@ svg: node-check | node_modules
.PHONY: svg-check
svg-check: svg
- @diff=$$(git diff $(SVG_DEST_DIR)); \
+ @git add $(SVG_DEST_DIR)
+ @diff=$$(git diff --cached $(SVG_DEST_DIR)); \
if [ -n "$$diff" ]; then \
- echo "Please run 'make svg' and commit the result:"; \
+ echo "Please run 'make svg' and 'git add $(SVG_DEST_DIR)' and commit the result:"; \
echo "$${diff}"; \
exit 1; \
fi;