5 from subprocess
import check_call
7 from script
.helpers
import GitWrapper
11 open('ffmpeg-mt-enabled', 'w').close()
12 if path
.exists('ffmpeg-mt-disabled'):
13 os
.remove('ffmpeg-mt-disabled')
14 # Allow setups where both ffmpeg and ffmpeg-mt are checked out
15 # simultaneously, and leave the directories alone in that case.
16 if path
.exists('ffmpeg/.git') and not path
.exists('ffmpeg-mt/.git'):
17 # ffmpeg-mt should be an empty directory if things are right
19 os
.rename('ffmpeg', 'ffmpeg-mt')
21 if git
.supports_nofetch
:
22 cmd
= 'git submodule update --no-fetch'.split()
24 cmd
= 'git submodule update'.split()
25 check_call(cmd
+ ['ffmpeg-mt'])
29 git
.foreach_module(func
)