#!/bin/sh
# -*- Mode: sh; indent-tabs-mode: nil; tab-width: 2 -*-
#
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: Michael Terry

if [ ! -d ../flatpak-builder-tools ]; then
  echo "You'll need to check out flatpak-builder-tools from here and install its dependencies:"
  echo "https://github.com/flatpak/flatpak-builder-tools.git"
  exit 1
fi

../flatpak-builder-tools/pip/flatpak-pip-generator \
  --yaml \
  --runtime org.gnome.Sdk//master \
  --output flatpak/duplicity.deps.yaml \
  fasteners pexpect

# REUSE-IgnoreStart
sed -i '1i# SPDX-License-Identifier: CC0-1.0\n# SPDX-FileCopyrightText: Michael Terry\n# This is a generated file, run ./flatpak/update-python.sh in the main deja-dup repo to rebuild\n' flatpak/duplicity.deps.yaml
# REUSE-IgnoreEnd
