diff options
-rw-r--r-- | BUGS | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -40,11 +40,19 @@ Many build systems provide versions of tools that are sometimes found on the hos Sometimes, it is useful to generate a required package list without having to do the profile on the host. This could be done by having access to that distribution's package database and comparing to a list of files accessed. Note that this can never be accurate, since files are found in different places, and library versions may be different. +6. Know how to read Wind River Linux required.txt files. +The following script could be used (thanks to Derek Buitenhuis): +#!/usr/bin/perl +use strict; +use warnings; - - - - +while(<STDIN>) { + # Skip comments and blank lines + next if (/^#/ or /^\s*\n/); + # Only keep the first word + s/(^.+)\s.+/$1/; + print; +} |