linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH pciutils] lib/configure: Also accept host tuples without vendor string
@ 2015-04-12  7:16 Felix Janda
  2015-09-14 15:47 ` Martin Mares
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Janda @ 2015-04-12  7:16 UTC (permalink / raw)
  To: linux-pci

Based on patch from
https://bugs.gentoo.org/show_bug.cgi?id=425022
---
 lib/configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/configure b/lib/configure
index 3783f57..7d4cec8 100755
--- a/lib/configure
+++ b/lib/configure
@@ -44,7 +44,7 @@ if [ -z "$HOST" ] ; then
 fi
 [ -n "$RELEASE" ] && rel="${RELEASE}"
 # CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless.
-host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'`
+host=`echo $HOST | sed -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\3/' -e 's/^\([^-]*\)-\([^-]*\)-\([^-]*\)$/\1-\2/' -e 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'`
 cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 echo " $host $rel $cpu $sys"
-- 
2.0.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH pciutils] lib/configure: Also accept host tuples without vendor string
  2015-04-12  7:16 [PATCH pciutils] lib/configure: Also accept host tuples without vendor string Felix Janda
@ 2015-09-14 15:47 ` Martin Mares
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Mares @ 2015-09-14 15:47 UTC (permalink / raw)
  To: Felix Janda; +Cc: linux-pci

Hello!

> Based on patch from
> https://bugs.gentoo.org/show_bug.cgi?id=425022

Thanks, applied. And sorry for the delay.

				Have a nice fortnight
-- 
Martin `MJ' Mares                          <mj@ucw.cz>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
To understand a program you must become both the machine and the program.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-14 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-12  7:16 [PATCH pciutils] lib/configure: Also accept host tuples without vendor string Felix Janda
2015-09-14 15:47 ` Martin Mares

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).