From 5ded616e61221ca889a6647903bd5c29860a0243 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Thu, 5 Mar 2020 12:57:17 +0000
Subject: [PATCH] build: Don't include a steam-runtime-tools subproject

This should make it easier to build pressure-vessel releases.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 build-relocatable-install.py | 1 +
 copy-source-code.py          | 1 +
 debian/source/options        | 6 ++++++
 3 files changed, 8 insertions(+)
 create mode 100644 debian/source/options

diff --git a/build-relocatable-install.py b/build-relocatable-install.py
index 9b645a244..6d6a0149e 100755
--- a/build-relocatable-install.py
+++ b/build-relocatable-install.py
@@ -558,6 +558,7 @@ def main():
                     '--exclude=./_build',
                     '--exclude=./debian',
                     '--exclude=./relocatable-install',
+                    '--exclude=./subprojects/steam-runtime-tools',
                     '-cf-',
                     '.',
                 ], stdout=subprocess.PIPE)
diff --git a/copy-source-code.py b/copy-source-code.py
index c60187a75..43586f770 100644
--- a/copy-source-code.py
+++ b/copy-source-code.py
@@ -79,6 +79,7 @@ def main():
         '--exclude=./_build',
         '--exclude=./debian',
         '--exclude=./relocatable-install',
+        '--exclude=./subprojects/steam-runtime-tools',
         '-cf-',
         '.',
     ], stdout=subprocess.PIPE)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 000000000..0e3ca7710
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,6 @@
+extend-diff-ignore=(?:^|/)\.git(?:/|$)
+extend-diff-ignore=(?:^|/)_build(?:/|$)
+extend-diff-ignore=(?:^|/)subprojects/steam-runtime-tools(?:/|$)
+tar-ignore=.git
+tar-ignore=_build
+tar-ignore=subprojects/steam-runtime-tools
-- 
GitLab