[banshee] 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] autogen.sh: call `make distclean` under the hood (bgo#741530)
- Date: Sat, 8 Aug 2015 16:37:47 +0000 (UTC)
commit 2dc66b1e6e8a08467fe8591651724cb1f101deb4
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 34cfe7e..0aec574 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -53,6 +53,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]