Modelled on the JIRA standalone distribution:
    https://stash.atlassian.com/projects/JIRA/repos/jira/browse/jira-distribution

The zip and tar.gz are constructed by the maven assembly plugin.  The main configuration file is
distribution/default/src/main/assembly/bin.xml. The plugin downloads and unzips a tomcat installation,
puts the Bitbucket war in the root directory and adds a few other config and sh/bat files.

Tomcat files:

conf/server.xml: modified from the default tomcat server.xml to add bitbucket as the default webapp
start-bitbucket: ensure that BITBUCKET_HOME is set, run tomcat's start script (optionally as a specified user BITBUCKET_USER)
stop-bitbucket: run tomcat's stop script  (optionally as a specified user BITBUCKET_USER)


To run:

cd bitbucket-distribution

mvn clean package

The result is target/atlassian-bitbucket-distribution-<VERSION>.{zip,tar.gz} and target/atlassian-bitbucket-distribution.tar.gz


To install:

Unpack distributable.  Run bin/start-bitbucket[.sh/bat].  Bitbucket Server is served at http://localhost:7990/
