Introduce $api_version and @API_VERSION@

A bug fix minor release like 5.0.1 has no own API doc or CLIRR report
page. Add a new variable so that we can use those of the base release.

Change-Id: I1a5a60562427fe5d9fe68d080ece46f56227b180
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
diff --git a/documentation/_index.html b/documentation/_index.html
index 9961448..839d168 100644
--- a/documentation/_index.html
+++ b/documentation/_index.html
@@ -5,7 +5,7 @@
 	<li><b><a href="http://wiki.eclipse.org/JGit/User_Guide"
 		title="JGit User Guide">JGit User Guide</a></b> - JGit user guide</li>
 	<li><a
-		href="http://download.eclipse.org/jgit/site/@VERSION@/apidocs/index.html"
+		href="http://download.eclipse.org/jgit/site/@API_VERSION@/apidocs/index.html"
 		title="API Documentation">API Documentation</a> - Javadoc for org.eclipse.jgit</li>
 	<li><b><a
     href="https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advanced&amp;short_desc_type=allwordssubstr&amp;short_desc=&amp;classification=Technology&amp;product=JGit&amp;long_desc_type=allwordssubstr&amp;long_desc=&amp;bug_file_loc_type=allwordssubstr&amp;bug_file_loc=&amp;status_whiteboard_type=allwordssubstr&amp;status_whiteboard=&amp;keywords_type=allwords&amp;keywords=&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;emailtype1=exact&amp;email1=&amp;emailtype2=substring&amp;email2=&amp;bugidtype=include&amp;bug_id=&amp;votes=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;cmdtype=doit&amp;order=Reuse+same+sort+as+last+time&amp;field0-0-0=noop&amp;type0-0-0=noop&amp;value0-0-0="
diff --git a/documentation/index.php b/documentation/index.php
index df4d29b..a20e362 100644
--- a/documentation/index.php
+++ b/documentation/index.php
@@ -8,6 +8,7 @@
 	$html .= "</div>";
 
 	$html = preg_replace('/@VERSION@/', $version, $html);
+	$html = preg_replace('/@API_VERSION@/', $api_version, $html);
 
 	# Generate the web page
 	$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
diff --git a/download/_index.html b/download/_index.html
index 27446bd..ae0995e 100644
--- a/download/_index.html
+++ b/download/_index.html
@@ -3,9 +3,9 @@
 <li><a href="@MAVEN_REPO@/org/eclipse/jgit/org.eclipse.jgit/@VERSION@/org.eclipse.jgit-@VERSION@.jar">org.eclipse.jgit.jar</a> (Raw API library)</li>
 <li><a href="@MAVEN_REPO@/org/eclipse/jgit/org.eclipse.jgit/@VERSION@/org.eclipse.jgit-@VERSION@-javadoc.jar">org.eclipse.jgit-javadoc.jar</a> (JavaDoc archive)</li>
 <li><a href="@MAVEN_REPO@/org/eclipse/jgit/org.eclipse.jgit.pgm/@VERSION@/org.eclipse.jgit.pgm-@VERSION@.sh">jgit.sh</a> (Self-contained command line executable)</li>
-<li><a href="http://download.eclipse.org/jgit/site/@VERSION@/">JGit @VERSION@ Projects Overview</a> (Maven Site)</li>
-<li><a href="http://download.eclipse.org/jgit/site/@VERSION@/apidocs/index.html">org.eclipse.jgit JavaDoc</a> (online JavaDoc)</li>
-<li><a href="http://download.eclipse.org/jgit/site/@VERSION@/org.eclipse.jgit/clirr-report.html">JGit API changes since previous release</a> (online Clirr API changes report)</li>
+<li><a href="http://download.eclipse.org/jgit/site/@API_VERSION@/">JGit @API_VERSION@ Projects Overview</a> (Maven Site)</li>
+<li><a href="http://download.eclipse.org/jgit/site/@API_VERSION@/apidocs/index.html">org.eclipse.jgit JavaDoc</a> (online JavaDoc)</li>
+<li><a href="http://download.eclipse.org/jgit/site/@API_VERSION@/org.eclipse.jgit/clirr-report.html">JGit API changes since previous release</a> (online Clirr API changes report)</li>
 </ul>
 
 Find the list of older JGit versions <a href="http://wiki.eclipse.org/JGit/FAQ#Where_can_I_find_older_releases_of_JGit.3F">here</a>.
diff --git a/download/index.php b/download/index.php
index 48230f7..61aec5b 100644
--- a/download/index.php
+++ b/download/index.php
@@ -9,6 +9,7 @@
 	$html .= "</div>";
 
 	$html = preg_replace('/@VERSION@/', $version, $html);
+	$html = preg_replace('/@API_VERSION@/', $api_version, $html);
 	$html = preg_replace('/@MAVEN_REPO@/', $maven_repo, $html);
 
 	# Generate the web page
diff --git a/version.php b/version.php
index af54fe3..b996f89 100644
--- a/version.php
+++ b/version.php
@@ -1,3 +1,4 @@
 <?php
 	$version = "5.0.1.201806211838-r";
+	$api_version="5.0.0.201806131550-r"; // For API docs and CLIRR reports
 ?>
\ No newline at end of file