Typo
authorBenjamin Smedberg <benjamin@smedbergs.us>
Mon, 14 Jul 2008 16:11:27 -0400
changeset 156 1ad802eb2712183cc63d704f5e1ba110e16beb15
parent 155 236864c4d239702b99d49859af89b37d7c7431b8
child 157 8daebed024b6410329793f900335824e1f0b77b6
push id32
push userbsmedberg@mozilla.com
push dateMon, 14 Jul 2008 20:11:41 +0000
Typo
generate-automatic-patches.py
--- a/generate-automatic-patches.py
+++ b/generate-automatic-patches.py
@@ -55,16 +55,19 @@ def build_pork(log):
 
         if exists('%s/config/myrules.mk' % porkobjdir):
             unlink('%s/config/myrules.mk' % porkobjdir)
         symlink('%s/pork-rules.mk' % thisdir, '%s/config/myrules.mk' % porkobjdir)
 
         check_call(['make', '-j%i' % parallel, 'WARNINGS_AS_ERRORS='],
                    cwd=porkobjdir,
                    stdout=errlog, stderr=errlog)
+
+        if exists('%s/iifiles.list' % rootdir):
+            unlink('%s/iifiles.list' % rootdir)
         check_call(['make', 'echo-iifiles', 'IIFILES_LIST=%s/iifiles.list' % rootdir],
                    cwd=porkobjdir, stdout=errlog, stderr=errlog)
 
 def run_garburator(log):
     """Run garburator"""
 
     with open('%s/automatic-garburator.errlog' % rootdir, 'w') as garburator_log:
         with open('%s/automatic-garburator.patch' % rootdir, 'w+') as garburator_patch:
@@ -101,17 +104,17 @@ def build_gcobject(log):
     if not exists(analysisobjdir):
         mkdir(analysisobjdir)
 
     with open('%s/analysis-build.log' % rootdir, 'w') as errlog:
         check_call([configuregccanalysis], cwd=analysisobjdir,
                    stdout=errlog, stderr=errlog)
 
         if exists('%s/config/myconfig.mk' % analysisobjdir):
-            unlink('%s/config/myconfig.mk')
+            unlink('%s/config/myconfig.mk' % analysisobjdir)
         symlink ('%s/gcobject-config.mk' % thisdir,
                  '%s/config/myconfig.mk' % analysisobjdir)
 
         check_call(['make', '-j%i' % parallel, 'WARNINGS_AS_ERRORS='],
                    cwd=analysisobjdir,
                    stdout=errlog, stderr=errlog)
 
 def run_gcobject(log):