Changeset 9340d5f1c779d0c7762cdc52dd66717da480bc7e

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

[0e771d42fc70c5380341d91b12e2910ea8dabdb8]

git-author:
Sam Hocevar <sam@videolan.org> 1057060713 +0000
Message:
  • toolbox: use nawk instead of awk (Fixes: #780).
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • toolbox

    re2a71ad r9340d5f  
    22 
    33##  toolbox for the VLC media player 
    4 ##  $Id: toolbox,v 1.33 2003/06/29 20:15:35 sam Exp $ 
     4##  $Id: toolbox,v 1.34 2003/07/01 11:58:33 sam Exp $ 
    55## 
    66##  Authors: Samuel Hocevar <sam@zoy.org> 
     
    3838getfiles() 
    3939{ 
    40   awk '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  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" | \ 
    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} | awk '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} | 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'` 
    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$'`