bug-hurd
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]