We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5242f55 commit bae6dfdCopy full SHA for bae6dfd
utils/link_issues_CHANGELOG
@@ -3,11 +3,12 @@
3
in=CHANGELOG.md
4
5
# Replace them with Markdown references
6
-sed -i -e 's/(\(#[0-9]\+\))/([\1])/g' "$in"
+sed -i -e 's/(\(#[0-9]\+\))/([\1][])/g' "$in"
7
8
# Populate references
9
-cat "$in" | sponge | sed -n -e 's/.*(\[#\([0-9]\+\)\]).*/\1/gp' | sort | uniq \
+tr ' ,' '\n\n' < "$in" | sponge | sed -n -e 's/.*(\[#\([0-9]\+\)\]\(\[\]*\)).*/\1/gp' | sort | uniq \
10
| while read issue; do
11
+ #echo "issue $issue"
12
# remove old one if exists
13
sed -i -e "/^\[#$issue\]:.*/d" "$in"
14
echo "[#$issue]: https://github.com/nipy/heudiconv/issues/$issue" >> "$in";
0 commit comments