From a3afb88f1b06225aca841b3c65b401d144643abe Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 24 Jul 2020 18:41:30 +0200 Subject: [PATCH] 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 --- Makefile | 5 +++-- web_src/svg/gitea-settings.svg | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 web_src/svg/gitea-settings.svg diff --git a/Makefile b/Makefile index 62d466eb4030..4ee3e9b70447 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; diff --git a/web_src/svg/gitea-settings.svg b/web_src/svg/gitea-settings.svg deleted file mode 100644 index 367390bf67c8..000000000000 --- a/web_src/svg/gitea-settings.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file