We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6b0cf commit e3dae69Copy full SHA for e3dae69
Makefile
@@ -81,11 +81,11 @@ release:
81
82
.PHONY: license
83
license:
84
- @license_len=$$(wc -l $(LICENSE_FILE) | cut -f1 -d ' ') && \
+ @license_len=$$(cat $(LICENSE_FILE) | wc -l) && \
85
files=$$(git ls-files | grep -E "\.go|\.java") && \
86
for file in $$files; do \
87
echo "Applying license to $$file"; \
88
- head -n $$license_len $$file | diff -q $(LICENSE_FILE) - > /dev/null || \
+ head -n $$license_len $$file | cmp -s $(LICENSE_FILE) - || \
89
( ( cat $(LICENSE_FILE); echo; cat $$file ) > $$file.temp; mv $$file.temp $$file ) \
90
done
91
0 commit comments