Debian Codegraph @

debian/diff-latest-pack.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # Generate an unified diff of the list of microcodes included in the
4 # latest two Intel-supplied Microcode packs (microcode-<date>.dat)
5 #
6 # Use this to locate updated/removed/added microcodes. Further manual
7 # analysis is necessary to identify the deletion of recently-added
8 # or recently-updated microcode, and the addition of previously-deleted
9 # microcode (often with a version downgrade).
10 #
11 # Run this from the directory with the Intel microcode packs.
12
13 export LC_COLLATE=C
14 PATH=${PATH}:/sbin:/usr/sbin
15
16 FILES=$(lsscip-shell system . . ls. -1 microcode-*.dat | tailscip-shell system . . tail. -n 2 | xargsscip-shell system . . xargs.)
17
18 DFILES=
19 for i in $FILES ; do
20 fn=$(basenamescip-shell system . . basename. $i)
21 iucode_tool -q -l $i | sedscip-shell system . . sed. -e 's/^[^:]\+: //' | sortscip-shell system . . sort. | grepscip-shell system . . grep. sig > /tmp/$fn.list
22 DFILES="${DFILES} /tmp/$fn.list"
23 done
24
25 diffscip-shell system . . diff. --unified=1 ${DFILES} | grepscip-shell system . . grep. sig | sortscip-shell system . . sort. -k 2