Skip to content

Commit

Permalink
Second try to make quiet build work reliably
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Oct 19, 2012
1 parent 7c5c56c commit d064703
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 80 deletions.
4 changes: 0 additions & 4 deletions Makefile.am
Expand Up @@ -129,10 +129,6 @@ win32getdeps:
win32setup:
makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi

patch-quiet:
find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;

update-csproj:
-rm msvc/scripts/order
-mkdir msvc/scripts/inputs
Expand Down
14 changes: 2 additions & 12 deletions configure.in
Expand Up @@ -22,6 +22,8 @@ AC_SUBST(API_VER)

AC_PROG_LN_S

m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

# In case of cygwin, override LN_S, irrespective of what it determines.
# The build uses cygwin, but the actual runtime doesn't.
case $host_os in
Expand Down Expand Up @@ -717,7 +719,6 @@ if test "x$with_xen_opt" = "xyes" -a "x$mono_cv_clang" = "xno"; then
])
fi

AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AC_ARG_ENABLE(small-config, [ --enable-small-config Enable tweaks to reduce requirements (and capabilities)], enable_small_config=$enableval, enable_small_config=no)

if test x$enable_small_config = xyes; then
Expand Down Expand Up @@ -3106,17 +3107,6 @@ AC_CONFIG_COMMANDS([runtime/etc/mono/4.5/web.config],
cd $depth
],[LN_S='$LN_S'])

if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet],
[ for i in `find mono libgc support -name Makefile`; do
if [ grep -q 'generated by automake' $i ]; then
$srcdir/scripts/patch-quiet.sh $i;
fi;
done
], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/echo "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi

AC_OUTPUT([
Makefile
mono-core.spec
Expand Down
14 changes: 2 additions & 12 deletions eglib/configure.ac
Expand Up @@ -13,6 +13,8 @@ AM_INIT_AUTOMAKE([1.9 dist-bzip2 tar-ustar no-dist-gzip foreign])
AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE

m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

AC_PROG_CC
AM_PROG_LIBTOOL
# Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.
Expand Down Expand Up @@ -213,7 +215,6 @@ if test "x$PKG_CONFIG" != "xno"; then
fi
AM_CONDITIONAL(HAVE_GLIB, $have_glib)

AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AC_SUBST(GPOINTER_TO_INT)
AC_SUBST(GPOINTER_TO_UINT)
AC_SUBST(GINT_TO_POINTER)
Expand All @@ -225,17 +226,6 @@ AC_SUBST(G_GINT64_FORMAT)
AC_SUBST(G_GUINT32_FORMAT)
AC_SUBST(G_GINT32_FORMAT)

if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet],
[ for i in `find mono src test -name Makefile`; do
if [ grep -q 'generated by automake' $i ]; then
$srcdir/../scripts/patch-quiet.sh $i;
fi;
done
], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi

AC_OUTPUT([
Makefile
m4/Makefile
Expand Down
7 changes: 2 additions & 5 deletions libgc/configure.in
Expand Up @@ -28,6 +28,8 @@ AC_SUBST(GC_VERSION)
AC_PROG_CC
AC_PROG_CXX

m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

dnl automake 1.6 and later need the AM_PROG_AS macro.
ifdef([AM_PROG_AS],[AM_PROG_AS],[])
AC_CHECK_TOOL(AR, ar)
Expand Down Expand Up @@ -519,11 +521,6 @@ else
multilib_arg=
fi

if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find . -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi

AC_OUTPUT(Makefile
m4/Makefile
include/Makefile
Expand Down
1 change: 0 additions & 1 deletion scripts/Makefile.am
Expand Up @@ -155,7 +155,6 @@ EXTRA_DIST = \
mono-test-install \
mono-heapviz \
$(MDOC_COMPAT) \
patch-quiet.sh \
get-cygwin-deps.sh \
mono-configuration-crypto.in

Expand Down
46 changes: 0 additions & 46 deletions scripts/patch-quiet.sh

This file was deleted.

0 comments on commit d064703

Please sign in to comment.