Commit 307acfed authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Get release-date from first NEWS entry instead of modification time of

parent f3eb13a8
......@@ -13,8 +13,8 @@ AX_SET_VERSION_INFO
# Automatically update release date based on date
[linux*],[release_date=`date +"%Y-%m-%d" -r ${srcdir}/`],
[*],[release_date=$(date -r "$(stat -f %m ${srcdir}/" +"%Y-%m-%d")])
[linux*],[release_date=$(sed -n 's/^Knot DNS .* (\(.*\))/\1/p;q;' ${srcdir}/NEWS)],
[*],[release_date=$(sed -n 's/^Knot DNS .* (\(.*\))/\1/p;q;' ${srcdir}/NEWS)])
AC_SUBST([RELEASE_DATE], $release_date)
# Set compiler compatibility flags
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment