[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Make it possible to use ``-'' for reading from stdin.
From: |
Thomas Schwinge |
Subject: |
[PATCH] Make it possible to use ``-'' for reading from stdin. |
Date: |
Tue, 23 Jun 2009 10:39:50 +0200 |
* mig.in <argument parsing> (-*): Change to ``-?*'' to let ``-'' fall through.
---
Hello!
On Mon, Jun 22, 2009 at 10:06:08PM +0200, olafBuddenhagen@gmx.net wrote:
> On Wed, Jun 17, 2009 at 12:40:56AM +0200, Thomas Schwinge wrote:
> > +%.sdefsi:
> > + echo '#include <hurd/$*.defs>' | \
> > + $(CPP) \
> > + $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) -DSERVERPREFIX=S_ \
> > + -x c - -o $@
>
> Interesting idea, was looking for something like that...
>
> I wonder whether it can be used for direct MiG invocations too.
Sure you can, but you have to use ``mig /dev/stdin'' -- or test and
confirm that the attached patch doesn't break anything, which I think
that it can't, but who knows...
Regards,
Thomas
---
mig.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mig.in b/mig.in
index 7707bf2..bed9b39 100644
--- a/mig.in
+++ b/mig.in
@@ -116,7 +116,7 @@ EOT
-imacros | -isystem ) cppflags="$cppflags $1 `prj_quote_sh "$2"`";
shift; shift;;
-cc) cpp="$2"; shift; shift;;
-migcom) migcom="$2"; shift; shift;;
- -* ) cppflags="$cppflags `prj_quote_sh "$1"`"; shift;;
+ -?* ) cppflags="$cppflags `prj_quote_sh "$1"`"; shift;;
* ) files="$files $1"; shift;;
esac
done
--
1.6.3.1
- Re: [PATCH 1/1] Provide a default prefix in Makefile, (continued)
- Re: [PATCH 1/1] Provide a default prefix in Makefile, Samuel Thibault, 2009/06/07
- Re: [PATCH 1/1] Provide a default prefix in Makefile, Samuel Thibault, 2009/06/07
- [PATCH] Don't abuse $(prefix) for finding build-time files., Thomas Schwinge, 2009/06/16
- Re: [PATCH] Don't abuse $(prefix) for finding build-time files., Sergiu Ivanov, 2009/06/18
- Some more about Git usage (was: [PATCH] Don't abuse $(prefix) for finding build-time files.), Thomas Schwinge, 2009/06/19
- Re: Some more about Git usage, olafBuddenhagen, 2009/06/22
- Re: Some more about Git usage, Sergiu Ivanov, 2009/06/23
- Re: [PATCH] Don't abuse $(prefix) for finding build-time files., Thomas Schwinge, 2009/06/19
- Re: [PATCH] Don't abuse $(prefix) for finding build-time files., Sergiu Ivanov, 2009/06/20
- Re: [PATCH] Don't abuse $(prefix) for finding build-time files., olafBuddenhagen, 2009/06/22
- [PATCH] Make it possible to use ``-'' for reading from stdin.,
Thomas Schwinge <=
- Re: [PATCH] Make it possible to use ``-'' for reading from stdin., olafBuddenhagen, 2009/06/29