Simple Automake concatenation is not enough to do all the evil things.
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 12 Dec 2012 22:53:45 +0000 (17:53 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 12 Dec 2012 22:53:45 +0000 (17:53 -0500)
* autogen.sh: Automake does support adding files to the list of program
sources using += but has no -= to remove them. This means that it's
not possible to replace a source file at all.

Given that, the only option is to patch automake. Call an external
script that apply the whole patch queue instead of doing it there.

autogen.sh

index fc2550142b22042cd4099212b2e3cea7a3e1f5d1..a01a29711a178e82182cd82a389716c7daea9626 100755 (executable)
@@ -114,7 +114,9 @@ for PARAM; do
 done
 
 if test x$has_ext_mod = xtrue; then
-       cat mono/mini/Makefile.am.in ../mono-extensions/mono/mini/Makefile.am > mono/mini/Makefile.am
+       pushd ../mono-extensions/scripts
+       sh ./prepare-repo.sh || exit 1
+       popd
 else
        cat mono/mini/Makefile.am.in > mono/mini/Makefile.am
 fi