Patchwork [3,of,3,osx-packaging] osx: always purge build/mercurial before starting build

login
register
mail settings
Submitter Augie Fackler
Date March 20, 2017, 10:03 p.m.
Message ID <2f315db599ec7886b51a.1490047385@augie-macbookair2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/19475/
State Accepted
Headers show

Comments

Augie Fackler - March 20, 2017, 10:03 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1490047124 14400
#      Mon Mar 20 17:58:44 2017 -0400
# Node ID 2f315db599ec7886b51a9d1ada7b5748ae2136dd
# Parent  58e38cc8a32128436c27c90f431b150acd925024
osx: always purge build/mercurial before starting build

This prevents stray files from previous builds from polluting newer builds.

Patch

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -159,6 +159,7 @@  i18n/hg.pot: $(PYFILES) $(DOCFILES) i18n
 # Packaging targets
 
 osx:
+	rm -rf build/mercurial
 	/usr/bin/python2.7 setup.py install --optimize=1 \
 	  --root=build/mercurial/ --prefix=/usr/local/ \
 	  --install-lib=/Library/Python/2.7/site-packages/