Moving docking script to scripts directory

This commit is contained in:
shockrah
2021-03-03 17:18:18 -08:00
parent ca5e93ffc8
commit b2b06083a4

34
scripts/git-doc.py Normal file
View File

@@ -0,0 +1,34 @@
'''
Additions: +
Modifications: *
Removals: -
Note/Warning !
'''
import sys
TMP_MSG_FILE = 'commit-message.tmp'
lines = []
for line in sys.stdin:
line = line.strip()
if line.startswith('+'):
line = '' + line[1:]
elif line.startswith('-'):
line = '' + line[1:]
elif line.startswith('*'):
line = '' + line[1:]
elif line.startswith('!'):
line = '' + line[1:]
lines.append(line)
with open(TMP_MSG_FILE, 'w') as target:
for line in lines:
print(line, file=target)