Repository: calcite-avatica-go Updated Branches: refs/heads/master adba1689e -> feb636fcb
Check files for Apache license header Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/repo Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/commit/731c4689 Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/731c4689 Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/731c4689 Branch: refs/heads/master Commit: 731c46895848d1e5d9bb70803d33dbfcc11b204b Parents: adba168 Author: Francis Chuang <[email protected]> Authored: Sat Apr 21 12:59:54 2018 +1000 Committer: Francis Chuang <[email protected]> Committed: Sun Apr 22 19:24:42 2018 +1000 ---------------------------------------------------------------------- make-release-artifacts.sh | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/731c4689/make-release-artifacts.sh ---------------------------------------------------------------------- diff --git a/make-release-artifacts.sh b/make-release-artifacts.sh index d9d3d7a..0cd1bdf 100755 --- a/make-release-artifacts.sh +++ b/make-release-artifacts.sh @@ -7,6 +7,15 @@ git fetch --tags # Get latest tag name latestTag=$(git describe --tags `git rev-list --tags --max-count=1` | sed -e 's/-rc[0-9][0-9]*//') + +# Exclude files without the Apache license header +for i in $(git ls-files); do + case "$i" in + (LICENSE|NOTICE|message/common.pb.go|message/requests.pb.go|message/responses.pb.go|test-fixtures/calcite.png|Gopkg.lock|Gopkg.toml);; # add exceptions here + (*) grep -q "Licensed to the Apache Software Foundation" $i || echo "$i has no header";; + esac +done + product=apache-calcite-avatica-go tarFile=$product-src-$latestTag.tar.gz
