mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-27 04:06:23 +00:00
Prevents 'make prod' from failing when auto-generated files do not change.
This commit is contained in:
@@ -26,7 +26,11 @@ prod:
|
||||
grunt --stack build
|
||||
git update-index --no-assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
|
||||
git add -f $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
|
||||
git commit -m "(js/css) Update generated files"
|
||||
@if ! git diff --quiet --exit-code; then \
|
||||
git commit -m "(js/css) Update generated files"; \
|
||||
else \
|
||||
echo "Nothing to commit; skipping git-commit"; \
|
||||
fi
|
||||
git update-index --assume-unchanged $(CSS_FILES) $(JS_FILES) $(JS_LIB_FILES)
|
||||
|
||||
all:
|
||||
|
||||
Reference in New Issue
Block a user