changeset 859:59b256cb1328

Move report_recorded_commands.sh into the new sources/more directory.
author Rob Landley <rob@landley.net>
date Sat, 24 Oct 2009 19:41:18 -0500
parents eda31d43d89f
children 6b80bbc15ded
files sources/more/report_recorded_commands.sh sources/toys/report_recorded_commands.sh
diffstat 2 files changed, 38 insertions(+), 38 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/more/report_recorded_commands.sh	Sat Oct 24 19:41:18 2009 -0500
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+# Quick script to mine the output of "RECORD_COMMANDS=1 ./forkbomb.sh --nofork"
+# for lists of commands used in each stage.
+
+# Output the list of commands used in a command log.
+
+function mine_commands()
+{
+  awk '{print $1}' $1 | sort -u
+}
+
+# Sort the log files into groups, then iterate through the result
+
+for i in `(for i in build/cmdlines-*/*; do echo $i; done) | sed 's@.*/cmdlines\.@@' | sort -u`
+do
+  # Start of new group, announce build stage we're looking at.
+  FIRST=""
+  echo
+  echo Checking $i
+
+  # Loop through this build stage in each architecture.
+  for j in build/cmdlines-*/cmdlines.$i
+  do
+    NAME="$(echo $j | sed 's@build/cmdlines-\([^/]*\)/.*@\1@')"
+
+    if [ -z "$FIRST" ]
+    then
+      # Show all commands in first architecture.
+      echo $NAME: $(mine_commands $j)
+      FIRST=$j
+    else
+      # Show commands that differ from first architecture (if any).
+      X=$(sort <(mine_commands $FIRST) <(mine_commands $j) | uniq -u)
+      [ ! -z "$X" ] && echo $NAME: $X
+    fi
+  done
+done
--- a/sources/toys/report_recorded_commands.sh	Sat Oct 24 18:37:09 2009 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-# Quick script to mine the output of "RECORD_COMMANDS=1 ./forkbomb.sh --nofork"
-# for lists of commands used in each stage.
-
-# Output the list of commands used in a command log.
-
-function mine_commands()
-{
-  awk '{print $1}' $1 | sort -u
-}
-
-# Sort the log files into groups, then iterate through the result
-
-for i in `(for i in build/cmdlines-*/*; do echo $i; done) | sed 's@.*/cmdlines\.@@' | sort -u`
-do
-  # Start of new group, announce build stage we're looking at.
-  FIRST=""
-  echo
-  echo Checking $i
-
-  # Loop through this build stage in each architecture.
-  for j in build/cmdlines-*/cmdlines.$i
-  do
-    NAME="$(echo $j | sed 's@build/cmdlines-\([^/]*\)/.*@\1@')"
-
-    if [ -z "$FIRST" ]
-    then
-      # Show all commands in first architecture.
-      echo $NAME: $(mine_commands $j)
-      FIRST=$j
-    else
-      # Show commands that differ from first architecture (if any).
-      X=$(sort <(mine_commands $FIRST) <(mine_commands $j) | uniq -u)
-      [ ! -z "$X" ] && echo $NAME: $X
-    fi
-  done
-done