index : matrix-js-sdk

My fork of matrix-js-sdk

path: root/scripts
diff options
context:
space:
mode:
authorDavid Baker <[email protected]>2016-12-09 19:19:40 +0000
committerDavid Baker <[email protected]>2016-12-09 19:19:40 +0000
commit67e75fb7af6677812f042c4a0b6866ef26c1f4b7 (patch)
tree55d6d15b8d7f9c67b7f9371b2ef7d2e714b106ad /scripts
parentebda89d1aef95471bd5f2fbe920fd0decb2c477d (diff)
downloadmatrix-js-sdk-67e75fb7af6677812f042c4a0b6866ef26c1f4b7.tar.gz
Invoke changelog_head from outside the pushd
so we know the relative path is right
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/changelog_head.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/changelog_head.py b/scripts/changelog_head.py
index 0c2a6bb1..c7c1c0ae 100755
--- a/scripts/changelog_head.py
+++ b/scripts/changelog_head.py
@@ -1,13 +1,14 @@
#!/usr/bin/env python
"""
-Outputs the body of the first entry of changelog file CHANGELOG.md
+Outputs the body of the first entry of changelog file on stdin
"""
import re
+import sys
found_first_header = False
-for line in open("CHANGELOG.md"):
+for line in sys.stdin:
line = line.strip()
if re.match(r"^Changes in \[.*\]", line):
if found_first_header: