fillinsha256sum: add license info
[pgp-tools.git] / gpgparticipants / fillinsha256sum.py
index 3986d57729b0538baf70e2d501c1fe559f4e15f5..62c05465c939578fb97ceeb7ba4b130d154827d6 100755 (executable)
@@ -1,6 +1,35 @@
 #!/usr/bin/env python2
+"""Fill in the first digits in a form created by gpgparticipants."""
+
+__version__ = "1.0"
 
 __author__ = "Stefan Huber <shuber@sthu.org>"
+__email__ = "shuber@sthu.org"
+__copyright__ = "Copyright 2013, Stefan Huber"
+
+__license__ = "MIT"
+
+# Permission is hereby granted, free of charge, to any person
+# obtaining a copy of this software and associated documentation
+# files (the "Software"), to deal in the Software without
+# restriction, including without limitation the rights to use,
+# copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following
+# conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+
 
 import sys
 import hashlib
@@ -95,7 +124,7 @@ if __name__ == "__main__":
 
             if actual[:len(h)] == h:
                 print "Found: ", H
-                open(args[1] + "." + H, "w").write(filledfile)
+                open(args[1] + "." + h, "w").write(filledfile)
 
                 if fastforward:
                     break