aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BUGS16
1 files changed, 12 insertions, 4 deletions
diff --git a/BUGS b/BUGS
index 23e17f5..07192b9 100644
--- a/BUGS
+++ b/BUGS
@@ -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;
+}