[banshee/stable-2.6] autogen.sh: call `make distclean` under the hood (bgo#741530)
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-2.6] autogen.sh: call `make distclean` under the hood (bgo#741530)
- Date: Sat, 8 Aug 2015 16:39:04 +0000 (UTC)
commit 2a0e2d19d027e26b984464f7e1a94d2bca9cc8a0
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Sat Aug 8 18:33:09 2015 +0200
autogen.sh: call `make distclean` under the hood (bgo#741530)
As a sanity-check measure, it's useful that autogen.sh calls
`make distclean` in case there are binaries of a previous
compilation that could cause issues.
In particular, bgo#741530 is actually a consequence of this:
a developer (yours truly) switching to a stable branch to
run a different version of banshee, but forgetting to remove
the binaries from master-branch that were generated before,
therefore mixing assemblies from one branch and the other.
If this command fails because there were no makefiles at all
(which is what happens at a clean checkout) then it will of
course silently fail.
autogen.sh | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 650b7e1..dfd0efb 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -50,6 +50,10 @@ test -z "$srcdir" && srcdir=.
error "Directory \"$srcdir\" does not look like the top-level $PROJECT directory"
}
+
+# in case there are binaries from a previous compilation
+make distclean 2>/dev/null
+
# MacPorts on OS X only seems to have glibtoolize
WHICHLIBTOOLIZE=$(which libtoolize || which glibtoolize)
if [ x"$WHICHLIBTOOLIZE" == x"" ]; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]