This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Michael, Joachim, All, On Monday 11 May 2009 19:26:54 Michael Abbott wrote: > Not a patch ... but how about: > lib="$( > for l in ncursesw ncurses curses; do > for x in so a dylib; do > echo -n "lib$l.$x " > done > done)" Yeah! Nice. See attached patch. Will be comitted soonish. > ? You probably don't need the -n (then you don't need the "... " either), > but I'm not actually looking at the useage here, just the one line. See The Open Group Base Specifications Issue 7: http://www.opengroup.org/onlinepubs/9699919799/utilities/echo.html OK, seems clear enough: echo has *not* option! Will be using printf instead, which is strongly recommended in the "Application Usage" section. > Actually, if the order matters you need to swap the for lines around, but > again I don't suppose it does. Yes, the order matters (we prefer ncursesw, then ncurses, then curses), but you got it right! :-) Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +0/33 662376056 | Software Designer | \ / CAMPAIGN | ___ | | --==< ^_^ >==-- `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | `------------------------------^-------^------------------^--------------------'
Index: ct-ng.trunk/configure =================================================================== --- ct-ng.trunk/configure (revision 1515) +++ ct-ng.trunk/configure (working copy) @@ -350,7 +350,13 @@ has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h" \ err="'ncurses' headers files were not found" -has_or_abort lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )" \ +ncurses_libs="$( for l in ncursesw ncurses curses; do \ + for x in so a dylib; do \ + printf "lib$l.$x "; \ + done; \ + done \ + )" +has_or_abort lib="${ncurses_libs}" \ err="'ncurses' library was not found" #---------------------------------------------------------------------
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |