Jim Meyering
2008-Sep-08 16:43 UTC
[Ovirt-devel] [PATCH release] add "diff"; work with autoconfiscated subdirs
Build in cleaned "node" dir fails due to missing Makefile. This also makes "make -f ovirt.mk status" and "make -f ovirt.mk diff" output more useful, so you can tell which parts belong to which subdirectories.>From 796ec90ac69a6c65cfdf65c74d1087987e0062ff Mon Sep 17 00:00:00 2001From: Jim Meyering <meyering at redhat.com> Date: Mon, 8 Sep 2008 18:39:49 +0200 Subject: [PATCH release] add "diff"; work with autoconfiscated subdirs * ovirt.mk (status): Add a "diff" target. Print module/dir name and a line of =========. (publish): Run autogen.sh and/or ./configure in directories like node, that have been autoconfiscated. --- ovirt.mk | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ovirt.mk b/ovirt.mk index e9bff32..8b97ef4 100644 --- a/ovirt.mk +++ b/ovirt.mk @@ -43,11 +43,12 @@ bumprelease: bumpversion: $(for_each_subdir) -status: +status diff: for dir in $(SUBDIRS); do \ - if test -d $$dir ; then \ - (cd $$dir && git $@) || :; \ - fi ; \ + if test -d $$dir ; then \ + echo ===== $$dir =============================================== ;\ + (cd $$dir && git $@) || :; \ + fi ; \ done build: publish @@ -56,6 +57,8 @@ publish: if ! test -d $$dir ; then \ $(MAKE) $$dir || exit 1 ; \ fi ; \ + ( cd $$dir; test ! -f Makefile.in && ./autogen.sh ); \ + ( cd $$dir; test ! -f Makefile && ./configure ); \ $(MAKE) -C $$dir $@ || exit 1 ; \ done rm -f rpms -- 1.6.0.1.196.g01914
Perry N. Myers
2008-Sep-08 17:31 UTC
[Ovirt-devel] [PATCH release] add "diff"; work with autoconfiscated subdirs
Jim Meyering wrote:> Build in cleaned "node" dir fails due to missing Makefile. > This also makes "make -f ovirt.mk status" and > "make -f ovirt.mk diff" output more useful, so you > can tell which parts belong to which subdirectories.Nice, ACK. Perry>>From 796ec90ac69a6c65cfdf65c74d1087987e0062ff Mon Sep 17 00:00:00 2001 > From: Jim Meyering <meyering at redhat.com> > Date: Mon, 8 Sep 2008 18:39:49 +0200 > Subject: [PATCH release] add "diff"; work with autoconfiscated subdirs > > * ovirt.mk (status): Add a "diff" target. > Print module/dir name and a line of =========. > (publish): Run autogen.sh and/or ./configure in directories like > node, that have been autoconfiscated. > --- > ovirt.mk | 11 +++++++---- > 1 files changed, 7 insertions(+), 4 deletions(-) > > diff --git a/ovirt.mk b/ovirt.mk > index e9bff32..8b97ef4 100644 > --- a/ovirt.mk > +++ b/ovirt.mk > @@ -43,11 +43,12 @@ bumprelease: > bumpversion: > $(for_each_subdir) > > -status: > +status diff: > for dir in $(SUBDIRS); do \ > - if test -d $$dir ; then \ > - (cd $$dir && git $@) || :; \ > - fi ; \ > + if test -d $$dir ; then \ > + echo ===== $$dir =============================================== ;\ > + (cd $$dir && git $@) || :; \ > + fi ; \ > done > > build: publish > @@ -56,6 +57,8 @@ publish: > if ! test -d $$dir ; then \ > $(MAKE) $$dir || exit 1 ; \ > fi ; \ > + ( cd $$dir; test ! -f Makefile.in && ./autogen.sh ); \ > + ( cd $$dir; test ! -f Makefile && ./configure ); \ > $(MAKE) -C $$dir $@ || exit 1 ; \ > done > rm -f rpms > -- > 1.6.0.1.196.g01914 > > _______________________________________________ > Ovirt-devel mailing list > Ovirt-devel at redhat.com > https://www.redhat.com/mailman/listinfo/ovirt-devel-- |=- Red Hat, Engineering, Emerging Technologies, Boston -=| |=- Email: pmyers at redhat.com -=| |=- Office: +1 412 474 3552 Mobile: +1 703 362 9622 -=| |=- GnuPG: E65E4F3D 88F9 F1C9 C2F3 1303 01FE 817C C5D2 8B91 E65E 4F3D -=|