Changeset d9010f221fa9a2d88ffca0a476e34dbac11bdc84

Show
Ignore:
Timestamp:
07/01/03 14:01:22 (5 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 1057060882 +0000
git-parent:

[ff0c860635651265f1b2a1d683607b97783ef638]

git-author:
Sam Hocevar <sam@videolan.org> 1057060882 +0000
Message:
  • toolbox: use awk, not nawk, and fixed syntax to match older awks.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • toolbox

    r9340d5f rd9010f2  
    22 
    33##  toolbox for the VLC media player 
    4 ##  $Id: toolbox,v 1.34 2003/07/01 11:58:33 sam Exp $ 
     4##  $Id: toolbox,v 1.35 2003/07/01 12:01:22 sam Exp $ 
    55## 
    66##  Authors: Samuel Hocevar <sam@zoy.org> 
     
    3838getfiles() 
    3939{ 
    40   nawk 'BEGIN{a=0}{if(!a&&/^'"$1"'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if(/^[a-zA-Z]/){exit;}print $0}}' < "${srcdir}/Makefile.am" | \ 
     40  awk 'BEGIN{a=0}{if(!a&&$0~/^'"$1"'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if($0~/^[a-zA-Z]/){exit;}print $0}}' < "${srcdir}/Makefile.am" | \ 
    4141    tr '\\ ' '\n\n' | \ 
    4242    sed -ne 's/[^-$()_a-zA-Z0-9][^-$()_a-zA-Z0-9]*\([a-zA-Z]\)/\1/p' | \ 
     
    264264    # production and remove everything that does not contain "module", which 
    265265    # means you miss $(NULL), but other variables too. 
    266     cfiles=`grep -v '[^-_a-zA-Z0-9]*#' ${makefile} | nawk 'BEGIN{a=0}{if(!a&&/^SOURCES_'${plugin}'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if(/^[a-zA-Z]/){exit;}print $0}}' | tr '\\ ' '\n\n' | sed -ne 's,/,\\\\,g; s/.*modules/modules/p'` 
     266    cfiles=`grep -v '[^-_a-zA-Z0-9]*#' ${makefile} | awk 'BEGIN{a=0}{if(!a&&$0~/^SOURCES_'${plugin}'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if($0~/^[a-zA-Z]/){exit;}print $0}}' | tr '\\ ' '\n\n' | sed -ne 's,/,\\\\,g; s/.*modules/modules/p'` 
    267267    hfiles=`for i in ${cfiles} ; do echo $i ; done | grep '\.h$'` 
    268268    cfiles=`for i in ${cfiles} ; do echo $i ; done | grep -v '\.h$'`