Revision fc0db0ec7e291abdf03b9a5d857d49e86c73b526 authored by Yichao Yu on 26 July 2015, 13:27:33 UTC, committed by Yichao Yu on 12 August 2015, 00:16:59 UTC
Instead of trashing pointer-like values on the stack, we fill dead objects
that is possibly referred to from the stack with garbage.
1 parent e6f85a9
Raw File
NEWS-update.jl
# Script to automatically insert Markdown footnotes for all [#xxxx] issue
# cross-references in the NEWS file.

NEWS = get(ARGS, 1, "NEWS.md")

s = readall(NEWS)

s = s[1:match(r"\[#[0-9]+\]:", s).offset-1];

footnote(n) = "[#$n]: https://github.com/JuliaLang/julia/issues/$n"
N = map(m -> parse(Int,m.captures[1]), eachmatch(r"\[#([0-9]+)\]", s))
foots = join(map(footnote, sort!(unique(N))), "\n")

open(NEWS, "w") do f
    println(f, s, foots)
end
back to top