File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,8 @@ $G/dlangspec.verbatim.txt : $G/dlangspec-consolidated.d $(DMD) verbatim.ddoc
577
577
578
578
$G/dblog_latest.ddoc :
579
579
@echo " Receiving the latest DBlog article. Disable with DIFFABLE=1"
580
- curl -s --retry 3 --retry-delay 5 http://blog.dlang.org > $(TMP ) /blog.html
580
+ curl -s --fail --retry 3 --retry-delay 5 http://blog.dlang.org > $(TMP ) /blog.html
581
+ @[ $? -eq 0 ] || (echo " Curl couldn't connect to the DBlog." ; exit 1)
581
582
cat $(TMP ) /blog.html | grep -m1 ' entry-title' | \
582
583
sed -E ' s/^.*<a href="(.+)" rel="bookmark">([^<]+)<\/a>.*<time.*datetime="[^"]+">([^<]*)<\/time><time class="updated".*Author *<\/span><a [^>]+>([^<]+)<\/a>.*/DBLOG_LATEST_TITLE=\2|DBLOG_LATEST_LINK=\1|DBLOG_LATEST_DATE=\3|DBLOG_LATEST_AUTHOR=\4/' | \
583
584
tr ' |' ' \n' > $@
You can’t perform that action at this time.
0 commit comments