old_contents: """Porcupine is a simple editor.
  
  You are probably reading this because you want to learn how Porcupine
  works or write fun plugins for it. I recommend getting started with the
  plugin API documentation:
  
      https://akuli.github.io/porcupine/
  """
  
  import pathlib
  import shutil
  import subprocess
  
  from porcupine import _state
  
  version_info = (0, 84, 2)        # this is updated with release.py
  __version__ = '%d.%d.%d' % version_info
  __author__ = 'Akuli'
  __copyright__ = 'Copyright (c) 2017-2020 Akuli'
  __license__ = 'MIT'
  
  # attach git stuff to the version if this isn't installed
  _here = pathlib.Path(__file__).absolute().parent
  if (_here.parent / '.git').is_dir() and shutil.which('git') is not None:
      # running porcupine from git repo
      try:
          __version__ += '+git.' + subprocess.check_output(
              ['git', 'log', '--pretty=format:%h', '-n', '1'], cwd=_here
          ).decode('ascii')
      except (OSError, subprocess.CalledProcessError, UnicodeError):   # pragma: no cover
          pass
  
  get_main_window = _state.get_main_window
  get_parsed_args = _state.get_parsed_args
  get_tab_manager = _state.get_tab_manager
  filedialog_kwargs = _state.filedialog_kwargs
  quit = _state.quit
  
new_contents: """Porcupine is a simple editor.
  
  You are probably reading this because you want to learn how Porcupine
  works or write fun plugins for it. I recommend getting started with the
  plugin API documentation:
  
      https://akuli.github.io/porcupine/
  """
  
  import pathlib
  import shutil
  import subprocess
  
  from porcupine import _state
  
  version_info = (0, 84, 2)        # this is updated with scripts/release.py
  __version__ = '%d.%d.%d' % version_info
  __author__ = 'Akuli'
  __copyright__ = 'Copyright (c) 2017-2020 Akuli'
  __license__ = 'MIT'
  
  # attach git stuff to the version if this isn't installed
  _here = pathlib.Path(__file__).absolute().parent
  if (_here.parent / '.git').is_dir() and shutil.which('git') is not None:
      # running porcupine from git repo
      try:
          __version__ += '+git.' + subprocess.check_output(
              ['git', 'log', '--pretty=format:%h', '-n', '1'], cwd=_here
          ).decode('ascii')
      except (OSError, subprocess.CalledProcessError, UnicodeError):   # pragma: no cover
          pass
  
  get_main_window = _state.get_main_window
  get_parsed_args = _state.get_parsed_args
  get_tab_manager = _state.get_tab_manager
  filedialog_kwargs = _state.filedialog_kwargs
  quit = _state.quit
  
subject: update script path comment