From 4cf059e38f65330a553c2f5c8428c32ce17ab4d3 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 28 Nov 2011 22:58:29 +0100 Subject: [PATCH 1/2] [ticket/10480] Add a build script for exporting the changelog from tracker. PHPBB3-10480 --- build/build_changelog.php | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 build/build_changelog.php diff --git a/build/build_changelog.php b/build/build_changelog.php new file mode 100755 index 0000000000..4eb5ebd83b --- /dev/null +++ b/build/build_changelog.php @@ -0,0 +1,53 @@ +#!/usr/bin/env php +xpath('//item') as $item) +{ + $key = (string) $item->key; + + $keyUrl = 'http://tracker.phpbb.com/browse/' . $key; + $keyLink = '' . $key . ''; + + $value = str_replace($key, $keyLink, htmlspecialchars($item->title)); + $value = str_replace(']', '] -', $value); + + $types[(string) $item->type][$key] = $value; +} + +ksort($types); +foreach ($types as $type => $tickets) +{ + echo "

$type

\n"; + echo "\n"; +} From f3519141379504a5c676fbb8026f71aa93d67da2 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 28 Nov 2011 23:04:17 +0100 Subject: [PATCH 2/2] [ticket/10480] Add a build target for changelog building. PHPBB3-10480 --- build/build.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/build.xml b/build/build.xml index 18b03243c2..2c42e1e162 100644 --- a/build/build.xml +++ b/build/build.xml @@ -138,6 +138,12 @@ save/save_${prevversion}_to_${newversion}/phpbb-${prevversion}_to_${newversion}_git_diffstat.txt" /> + + + +