File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
# -*- coding: utf-8 -*-
3
3
4
- #------------------------------------------------------------------------------------------------------
4
+ #----------------------------------------------------------------------------------------------------------
5
5
# checksum.py
6
6
# A SHA1 hash checksum list generator for fonts and fontTools
7
7
# XML dumps of font OpenType table data + checksum testing
10
10
# Copyright 2018 Christopher Simpkins
11
11
# MIT License
12
12
#
13
- # Dependencies: Python fontTools library
13
+ # Dependencies:
14
+ # - Python fontTools library
15
+ # - Python 3 interpreter
14
16
#
15
17
# Usage: checksum.py (options) [file path 1]...[file path n]
16
18
#
17
19
# Options:
18
20
# -h, --help Help
19
21
# -t, --ttx Calculate SHA1 hash values from ttx dump of XML (default = font binary)
20
- # -s, --stdout Stream to standard output stream (default = write to disk as 'checksum.txt')
22
+ # -s, --stdout Stream to standard output stream (default = write to working dir as 'checksum.txt')
21
23
# -c, --check Test SHA1 checksum values against a valid checksum file
22
24
#
23
25
# Options, --ttx only:
24
26
# -e, --exclude Excluded OpenType table (may be used more than once, mutually exclusive with -i)
25
27
# -i, --include Included OpenType table (may be used more than once, mutually exclusive with -e)
26
28
# -n, --noclean Do not discard .ttx files that are used to calculate SHA1 hashes
27
- #-------------------------------------------------------------------------------------------------------
29
+ #-----------------------------------------------------------------------------------------------------------
28
30
29
31
import argparse
30
32
import hashlib
You can’t perform that action at this time.
0 commit comments