|
Last change
on this file since 3306 was 2725, checked in by Bruno Cornec, 14 years ago |
- Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
491 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Depmod output may be hard to diff.
|
|---|
| 4 | # This script sorts dependencies within "xx.ko: yy.ko zz.ko" lines,
|
|---|
| 5 | # and sorts all lines too.
|
|---|
| 6 | # Usage:
|
|---|
| 7 | #
|
|---|
| 8 | # [./busybox] depmod -n | ./depmod_process.sh | sort >OUTFILE
|
|---|
| 9 | #
|
|---|
| 10 | # and then you can diff OUTFILEs. Useful for comparing bbox depmod
|
|---|
| 11 | # with module-init-tools depmod and such.
|
|---|
| 12 |
|
|---|
| 13 | while read -r word rest; do
|
|---|
| 14 | if ! test "${word/*:/}"; then
|
|---|
| 15 | echo -n "$word "
|
|---|
| 16 | echo "$rest" | xargs -n1 | sort | xargs
|
|---|
| 17 | else
|
|---|
| 18 | echo "$word $rest";
|
|---|
| 19 | fi
|
|---|
| 20 | done
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.