Skip to content

Instantly share code, notes, and snippets.

@motoishmz
Created April 23, 2013 10:50
Show Gist options
  • Save motoishmz/5442618 to your computer and use it in GitHub Desktop.
Save motoishmz/5442618 to your computer and use it in GitHub Desktop.
import os
import subprocess
basedir = os.path.abspath('.')
def check(path):
print path
os.chdir(path)
cmd = 'xcodebuild'
subprocess.check_call(cmd, shell=True)
def check_dir(path):
os.chdir(basedir)
path = os.path.abspath(path)
for i in os.listdir(path):
p = os.path.join(path, i)
if not os.path.isdir(p): continue
check(p)
check_dir('../apps')
check_dir('../examples')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment