summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2016-06-21 21:55:06 +0200
committerFlorian Müllner <fmuellner@gnome.org>2016-06-21 21:55:26 +0200
commit1c0e0191e0e52ed3d4b5fa6be841759f8f1a163c (patch)
tree9940e5b868c52f4cc752db2e2eea4b7518960865 /tools
parentf233122d4dc3fc4a7ee7559b8ccad6b78d78612f (diff)
downloadgnome-shell-1c0e0191e0e52ed3d4b5fa6be841759f8f1a163c.tar.gz
build: Fix check-for-missing for srcdir != builddir
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-for-missing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/check-for-missing.py b/tools/check-for-missing.py
index 6168375a0..7b12371b7 100755
--- a/tools/check-for-missing.py
+++ b/tools/check-for-missing.py
@@ -12,12 +12,13 @@ srcdir=sys.argv[1]
distdir=sys.argv[2]
excludes=sys.argv[3:]
+cwd=os.getcwd()
os.chdir(srcdir)
status=0
for f in subprocess.Popen(["git", "ls-files"], stdout=subprocess.PIPE).stdout:
f = f.decode('utf-8').strip()
- if (not os.path.exists(os.path.join(distdir, f)) and
+ if (not os.path.exists(os.path.join(cwd, distdir, f)) and
not any((fnmatch.fnmatch(f, p) for p in excludes))):
print("File missing from distribution:", f)
status=1