Skip to content

Commit

Permalink
Merge branch 'master' of github.com:D-Programming-Language/d-programm…
Browse files Browse the repository at this point in the history
…ing-language.org
  • Loading branch information
WalterBright committed Jan 22, 2012
2 parents 3b2e88f + d3c14ba commit 366ec0e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
24 changes: 24 additions & 0 deletions bugstats.php.dd
@@ -0,0 +1,24 @@
Ddoc

$(D_S Bug tracker,

$(BOOKTABLE $(SECTION3 Current bugs <font size=-1>$(LINK2 http://d.puremagic.com/issues/enter_bug.cgi?product=D,[report new bug])</font>),
$(DISPLAY Regression, query_format=advanced&bug_severity=regression&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=D, #ff0000)
$(DISPLAY Blocker, query_format=advanced&bug_severity=blocker&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=D)
$(DISPLAY Critical, query_format=advanced&bug_severity=critical&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=D)
$(DISPLAY Major, query_format=advanced&bug_severity=major&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=D)
$(DISPLAY Normal$(COMMA) minor$(COMMA) or trivial, query_format=advanced&bug_severity=normal&bug_severity=minor&bug_severity=trivial&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED)
$(DISPLAY Enhancement, query_format=advanced&bug_severity=enhancement&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED)
$(DISPLAY All open, query_format=advanced&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED)
$(DISPLAY All closed, query_format=advanced&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED)
)

$(P <center>$(LINK2 http://d.puremagic.com/issues/reports.cgi?product=D&datasets=NEW%3A&datasets=ASSIGNED%3A&datasets=REOPENED%3A&datasets=RESOLVED%3A, <img src=http://d.puremagic.com/issues/graphs/D_NEW_ASSIGNED_REOPENED_RESOLVED.png>)</center>)

)

Macros:
TITLE=Bug tracker for the dmd compiler
PHP=<?php $0 ?>
BOOKTABLE = <center><table cellspacing=0 cellpadding=5 valign=top class=book><caption>$1</caption>$2</table></center>
DISPLAY=$(TR $(TD <font color=$3>$(LINK2 http://d.puremagic.com/issues/buglist.cgi?$2, $1)</font>) $(TD <iframe scrolling=no frameborder=0 width="48em" height="18em" vspace="0" hspace="0" marginwidth="0" marginheight="0" src=fetch-issue-cnt.php?$2></iframe>))
2 changes: 1 addition & 1 deletion doc.ddoc
Expand Up @@ -188,7 +188,7 @@ $(NAVBLOCK_HEADER $(TOCHEADERL index.html, D Programming Language, D Home),
$(TOCENTRYTH comparison.html, D feature list, Features, $(CATEGORY_FEATURES $(SUBNAV_FEATURES)))
$(TOCENTRYTH download.html, Download a D compiler, Downloads &amp; Tools, $(CATEGORY_DOWNLOAD $(SUBNAV_DOWNLOAD)))
$(TOCENTRYT changelog.html, History of changes to D, Changelog)
$(TOCENTRYT http://d.puremagic.com/issues/, D issue and bug tracking system, Bug tracker)
$(TOCENTRYT bugstats.php, D issue and bug tracking system, Bug tracker)
$(TOCENTRYTH faq.html, Frequently Asked Questions, FAQ, $(CATEGORY_FAQ $(SUBNAV_FAQ)))
$(TOCENTRYH appendices.html, Appendices, $(CATEGORY_APPENDICES $(SUBNAV_APPENDICES)))
$(TOCENTRYT acknowledgements.html, Thank-you to these people who have helped with D, Acknowledgments)
Expand Down
13 changes: 13 additions & 0 deletions fetch-issue-cnt.php
@@ -0,0 +1,13 @@
<html>
<p align=right>
<?php
$url = 'http://d.puremagic.com/issues/buglist.cgi?' . $_SERVER["QUERY_STRING"];
#echo $url;
$data = file_get_contents($url);
$regex = '/(\d+) issues found/';
preg_match($regex,$data,$match);
#var_dump($match);
echo $match[1];
?>
</p>
</html>
9 changes: 6 additions & 3 deletions posix.mak
Expand Up @@ -36,7 +36,7 @@ search-button.gif Thumbs.db tdpl.jpg ubuntu_logo.png win32_logo.png)
STYLES=css/style.css css/print.css

PREMADE=dcompiler.html language-reference.html appendices.html \
howtos.html articles.html
howtos.html articles.html fetch-issue-cnt.php

TARGETS=32-64-portability.html cpptod.html ctod.html download.html \
pretod.html gsoc2011.html index.html overview.html spec.html \
Expand All @@ -61,7 +61,7 @@ TARGETS=32-64-portability.html cpptod.html ctod.html download.html \
unittest.html hash-map.html pdf-intro-cover.html \
pdf-spec-cover.html pdf-tools-cover.html intro-to-datetime.html \
std_consolidated_header.html simd.html dmd-windows.html \
dmd-linux.html dmd-freebsd.html dmd-osx.html
dmd-linux.html dmd-freebsd.html dmd-osx.html bugstats.php

PDFINTRO=index.html overview.html wc.html warnings.html builtin.html \
ctod.html cpptod.html pretod.html template-comparison.html
Expand Down Expand Up @@ -112,6 +112,9 @@ ALL_FILES = $(ALL_FILES_BUT_SITEMAP) $(DOC_OUTPUT_DIR)/sitemap.html
$(DOC_OUTPUT_DIR)/%.html : %.dd $(DDOC)
$(DMD) -c -o- -Df$@ $(DDOC) $<

$(DOC_OUTPUT_DIR)/%.php : %.php.dd $(DDOC)
$(DMD) -c -o- -Df$@ $(DDOC) $<

$(DOC_OUTPUT_DIR)/% : %
@mkdir -p $(dir $@)
cp $< $@
Expand Down Expand Up @@ -151,7 +154,7 @@ clean:
rm -rf $(DOC_OUTPUT_DIR) ${DMD_DIR}.${LATEST} ${LATEST}.ddoc
rm -rf ${DRUNTIME_DIR}.${LATEST} ${PHOBOS_DIR}.${LATEST}

rsync : #all
rsync : all
rsync -avz $(DOC_OUTPUT_DIR)/ d-programming@digitalmars.com:data/

pdf : $(PDFTARGETS)
Expand Down

0 comments on commit 366ec0e

Please sign in to comment.