bootstrap/template.py: add sha1sum support
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 19 Mar 2019 23:26:48 +0000 (12:26 +1300)
committerStefan Metzmacher <metze@samba.org>
Thu, 18 Apr 2019 12:09:34 +0000 (12:09 +0000)
commit37676409926a89bd83dd3b916144dd9aaae151f3
tree3ef24309c11cfc0043a8e6bc0a60301a675b3acf
parentda0567e00b113baccad7f41f9dab5dc82cc7f996
bootstrap/template.py: add sha1sum support

1. calc sha1sum for files under bootstrap/ (except README.md
   and *.pyc files) after render and write to bootstrap/sha1sum.txt file.
2. add a new option to print sha1sum, so we can use it to compare in ci

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
bootstrap/template.py