Changeset 9340d5f1c779d0c7762cdc52dd66717da480bc7e
- 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
| re2a71ad |
r9340d5f |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## 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 $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 38 | 38 | getfiles() |
|---|
| 39 | 39 | { |
|---|
| 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" | \ |
|---|
| 41 | 41 | tr '\\ ' '\n\n' | \ |
|---|
| 42 | 42 | sed -ne 's/[^-$()_a-zA-Z0-9][^-$()_a-zA-Z0-9]*\([a-zA-Z]\)/\1/p' | \ |
|---|
| … | … | |
| 264 | 264 | # production and remove everything that does not contain "module", which |
|---|
| 265 | 265 | # 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'` |
|---|
| 267 | 267 | hfiles=`for i in ${cfiles} ; do echo $i ; done | grep '\.h$'` |
|---|
| 268 | 268 | cfiles=`for i in ${cfiles} ; do echo $i ; done | grep -v '\.h$'` |
|---|