Fix the clean script (again)
[mplayer/kovensky.git] / build / clean
blobd532d75e3233ab32f10d5fdee11f4d69b943140e
1 #!/usr/bin/env python
3 import os
4 from subprocess import check_call
5 from script.helpers import GitWrapper
7 def main():
8 git = GitWrapper()
9 check_call('rm -rf build_libs ffmpeg_build build-stamp configure-stamp'.split())
10 os.chdir('..')
11 check_call('git clean -x -d -f build/debian/'.split())
12 def cmd():
13 check_call('git clean -x -d -f'.split())
14 git.foreach_submodule(cmd)
15 os.chdir('..')
16 check_call('make distclean'.split())
18 main()