9 SCRIPTDIR = os.path.realpath(os.path.dirname(__file__))
12 if __name__ == "__main__":
13 subprojects_dir = os.path.join(SCRIPTDIR, "..", "subprojects")
15 for repo_name in os.listdir(subprojects_dir):
16 repo_dir = os.path.normpath(os.path.join(SCRIPTDIR, subprojects_dir, repo_name))
17 if not os.path.exists(os.path.join(repo_dir, '.git')):
20 diff = git('diff', repository_path=repo_dir).strip('\n')
22 print('ERROR: Repository %s is not clean' % repo_dir)
23 print('NOTE: Make sure to commit necessary changes in the gst_plugins_cache.json files')