Skip to content

Commit bae6dfd

Browse files
committed
Updated link_issues_CHANGELOG with new version from datalad 0.12.0rc2-125-gc350b96e
It should generate markdown links as [LINKID][] to follow original markdown (not github flavor) and so pandoc and possibly other tools do not barf
1 parent 5242f55 commit bae6dfd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/link_issues_CHANGELOG

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
in=CHANGELOG.md
44

55
# Replace them with Markdown references
6-
sed -i -e 's/(\(#[0-9]\+\))/([\1])/g' "$in"
6+
sed -i -e 's/(\(#[0-9]\+\))/([\1][])/g' "$in"
77

88
# Populate references
9-
cat "$in" | sponge | sed -n -e 's/.*(\[#\([0-9]\+\)\]).*/\1/gp' | sort | uniq \
9+
tr ' ,' '\n\n' < "$in" | sponge | sed -n -e 's/.*(\[#\([0-9]\+\)\]\(\[\]*\)).*/\1/gp' | sort | uniq \
1010
| while read issue; do
11+
#echo "issue $issue"
1112
# remove old one if exists
1213
sed -i -e "/^\[#$issue\]:.*/d" "$in"
1314
echo "[#$issue]: https://github.com/nipy/heudiconv/issues/$issue" >> "$in";

0 commit comments

Comments
 (0)