FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 12-25-2010, 10:59 PM
Nezmer
 
Default makepkg and (n)awk

Hi,

In commit ef977865, awk was added as an external tool needed by makepkg.

As you know, there is different awk implementations out there. nawk is
the implementation shipped by default in non-GNU systems As far as I
know.

Unfortunately, awk usage in makepkg is not nawk-compatible.

Command:

%gawk '/^[[:space:]]*provides=/,/)/' B | sed "s/provides=/provides_list+=/"

Output:

provides_list+=('p1' 'p2' '3') # comment

Command:

% awk '/^[[:space:]]*provides=/,/)/' B | sed "s/provides=/provides_list+=/"

Output:

awk: illegal primary in regular expression ) at
source line number 1
context is
>>> /^[[:space:]]*provides=/,/)/ <<<


======================

Anyway, what is awk doing here? Is it the same as:
egrep '^s*provides=(.*)'
 

Thread Tools




All times are GMT. The time now is 08:15 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org