old_contents: # Copyright (c) 2010-2014, GEM Foundation.
  #
  # OpenQuake is free software: you can redistribute it and/or modify it
  # under the terms of the GNU Affero General Public License as published
  # by the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # OpenQuake is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with OpenQuake.  If not, see <http://www.gnu.org/licenses/>.
  
  
  """
  OpenQuake is an open-source platform for the calculation of hazard, risk,
  and socio-economic impact. It is a project of the Global Earthquake Model,
  nd may be extended by other organizations to address additional classes
  of peril.
  
  For more information, please see the website at http://www.globalquakemodel.org
  This software may be downloaded at http://github.com/gem/openquake
  
  The continuous integration server is at
      http://openquake.globalquakemodel.org
  
  Up-to-date sphinx documentation is at
      http://openquake.globalquakemodel.org/docs
  
  This software is licensed under the AGPL license, for more details
  please see the LICENSE file.
  
  Copyright (c) 2010-2014, GEM Foundation.
  
  OpenQuake is free software: you can redistribute it and/or modify it
  under the terms of the GNU Affero General Public License as published
  by the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
  
  OpenQuake is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU Affero General Public License
  along with OpenQuake.  If not, see <http://www.gnu.org/licenses/>.
  """
  
  import os
  from openquake.hazardlib.general import git_suffix
  
  
  # version number follows the syntax <major>.<minor>.<patchlevel>[<suffix>]
  # where major, minor and patchlevel are numbers.
  # suffix follows the ubuntu versioning rules.
  # for development version suffix is:
  #  "-" + <pkg-version> + "+dev" + <secs_since_epoch> + "-" + <commit-id>
  # NB: the next line is managed by packager.sh script (we retrieve the version
  #     using sed and optionally replace it)
  __version__ = '1.5.0'
  __version__ += git_suffix(__file__)
  
  # The path to the OpenQuake root directory
  OPENQUAKE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
  
  NO_DISTRIBUTE_VAR = 'OQ_NO_DISTRIBUTE'
  
  
  def no_distribute():
      """
      Check the `OQ_NO_DISTRIBUTE` environment var to determine if calculations
      should be distributed or not.
  
      :returns:
          `True` if the envvar value is "true", "yes", "t", or "1", regardless of
          case. Otherwise, return `False`.
  
          If the variable is undefined, it defaults to `False`.
      """
      nd = os.environ.get(NO_DISTRIBUTE_VAR)
      if nd:
          return nd.lower() in ("true", "yes", "t", "1")
  
  
  def set_django_settings_module():
      os.environ.setdefault(
          'DJANGO_SETTINGS_MODULE', 'openquake.engine.settings')
  
  set_django_settings_module()
  
new_contents: # Copyright (c) 2010-2014, GEM Foundation.
  #
  # OpenQuake is free software: you can redistribute it and/or modify it
  # under the terms of the GNU Affero General Public License as published
  # by the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # OpenQuake is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with OpenQuake.  If not, see <http://www.gnu.org/licenses/>.
  
  
  """
  OpenQuake is an open-source platform for the calculation of hazard, risk,
  and socio-economic impact. It is a project of the Global Earthquake Model,
  nd may be extended by other organizations to address additional classes
  of peril.
  
  For more information, please see the website at http://www.globalquakemodel.org
  This software may be downloaded at http://github.com/gem/openquake
  
  The continuous integration server is at
      https://ci.openquake.org
  
  Up-to-date sphinx documentation is at
      http://docs.openquake.org
  
  This software is licensed under the AGPL license, for more details
  please see the LICENSE file.
  
  Copyright (c) 2010-2014, GEM Foundation.
  
  OpenQuake is free software: you can redistribute it and/or modify it
  under the terms of the GNU Affero General Public License as published
  by the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
  
  OpenQuake is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU Affero General Public License
  along with OpenQuake.  If not, see <http://www.gnu.org/licenses/>.
  """
  
  import os
  from openquake.hazardlib.general import git_suffix
  
  
  # version number follows the syntax <major>.<minor>.<patchlevel>[<suffix>]
  # where major, minor and patchlevel are numbers.
  # suffix follows the ubuntu versioning rules.
  # for development version suffix is:
  #  "-" + <pkg-version> + "+dev" + <secs_since_epoch> + "-" + <commit-id>
  # NB: the next line is managed by packager.sh script (we retrieve the version
  #     using sed and optionally replace it)
  __version__ = '1.5.0'
  __version__ += git_suffix(__file__)
  
  # The path to the OpenQuake root directory
  OPENQUAKE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
  
  NO_DISTRIBUTE_VAR = 'OQ_NO_DISTRIBUTE'
  
  
  def no_distribute():
      """
      Check the `OQ_NO_DISTRIBUTE` environment var to determine if calculations
      should be distributed or not.
  
      :returns:
          `True` if the envvar value is "true", "yes", "t", or "1", regardless of
          case. Otherwise, return `False`.
  
          If the variable is undefined, it defaults to `False`.
      """
      nd = os.environ.get(NO_DISTRIBUTE_VAR)
      if nd:
          return nd.lower() in ("true", "yes", "t", "1")
  
  
  def set_django_settings_module():
      os.environ.setdefault(
          'DJANGO_SETTINGS_MODULE', 'openquake.engine.settings')
  
  set_django_settings_module()
  
subject: Update some links to the openquake website