index : matrix-js-sdk

My fork of matrix-js-sdk

path: root/scripts
diff options
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)
Invoke changelog_head from outside the pushd
so we know the relative path is right
Diffstat (limited to 'scripts')
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/ b/scripts/
index 0c2a6bb1..c7c1c0ae 100755
--- a/scripts/
+++ b/scripts/
@@ -1,13 +1,14 @@
#!/usr/bin/env python
-Outputs the body of the first entry of changelog file
+Outputs the body of the first entry of changelog file on stdin
import re
+import sys
found_first_header = False
-for line in open(""):
+for line in sys.stdin:
line = line.strip()
if re.match(r"^Changes in \[.*\]", line):
if found_first_header: