mirror of
https://git.busybox.net/busybox.git
synced 2024-11-24 06:03:27 +08:00
16bda3bd1f
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
21 lines
491 B
Bash
Executable File
21 lines
491 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Depmod output may be hard to diff.
|
|
# This script sorts dependencies within "xx.ko: yy.ko zz.ko" lines,
|
|
# and sorts all lines too.
|
|
# Usage:
|
|
#
|
|
# [./busybox] depmod -n | ./depmod_process.sh | sort >OUTFILE
|
|
#
|
|
# and then you can diff OUTFILEs. Useful for comparing bbox depmod
|
|
# with module-init-tools depmod and such.
|
|
|
|
while read -r word rest; do
|
|
if ! test "${word/*:/}"; then
|
|
echo -n "$word "
|
|
echo "$rest" | xargs -n1 | sort | xargs
|
|
else
|
|
echo "$word $rest";
|
|
fi
|
|
done
|