Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2003-10-12 05:02:32 +0400
committerJonathan Pryor <jpryor@novell.com>2003-10-12 05:02:32 +0400
commit95b6672f5971d7033c77cd92108ede7c382ae6c7 (patch)
tree9644e1333aac85bb4262ee11fe13f2ecf8d6aefd /autogen.sh
parent1c9696406de469b686da8e389b52a519675adad0 (diff)
Update build system so that RPMs can be easily built.
svn path=/trunk/mono-tools/; revision=18895
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 6246394f..46e0ad4b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,6 +4,12 @@
DIE=0
+# This is a horrible hack, but allows us to keep Makefile.am and autogen.sh in
+# sync (regarding which directories we actually care about for building).
+
+subdirs=`cat subdirs`
+cat Makefile.am.in | sed "s/@subdirs@/$subdirs/" > Makefile.am
+
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
@@ -96,7 +102,7 @@ conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
# Let subdirs also run autogen.sh
echo "Processing autogen.sh in subdirectories..."
-for d in ./* ; do
+for d in $subdirs ; do
if [ -d "$d" -a -x "$d/autogen.sh" ]; then
( cd $d ; ./autogen.sh "$@" )
fi