[vlc-devel] commit: list.sh: fix modules listing. ( R??mi Duraffort )

jpd at videolan.org jpd at videolan.org
Tue Jan 5 15:08:43 CET 2010


On Mon, Dec 28, 2009 at 07:30:45PM +0100, git version control wrote:
> vlc | branch: master | R??mi Duraffort <ivoire at videolan.org> | [...]
[...]
> - for module in `awk '/^SOURCES_/{sub(/SOURCES_/,"",$1); print $1}' "$modfile"`
> + for module in `awk '/^SOURCES_/{sub(/SOURCES_/,"",$1); print $1}' "$modfile"`\
> +               `awk '/^lib.*_plugin_la_SOURCES/{sub(/lib/,""); sub(/_plugin_la_SOURCES/,"",$1); print $1}' "$modfile"`

There really is no need to fire up another awk process for this. It may
be more readable to forego backticks and for ... and instead use

	awk '<awk program here>' "$modfile" |
	while read module ; do
		...
	done





More information about the vlc-devel mailing list