Rev | Line | |
---|
[9] | 1 | #!/bin/sh
|
---|
| 2 | #
|
---|
| 3 | # srccrc 1.0 - compute CRC checksums of the entire source tree
|
---|
| 4 | # Author: Kees J. Bot
|
---|
| 5 | cd /usr || exit
|
---|
| 6 |
|
---|
| 7 | {
|
---|
| 8 | # List the file names of all files in /usr/include and /usr/src.
|
---|
| 9 | find include src/* -type f
|
---|
| 10 | } | {
|
---|
| 11 | # Sort the list to make them comparable.
|
---|
| 12 | sort
|
---|
| 13 | } | {
|
---|
| 14 | # Remove files like *.o, *.bak, etc.
|
---|
| 15 | sed -e '/\.o$/d
|
---|
| 16 | /\.a$/d
|
---|
| 17 | /\.bak$/d
|
---|
| 18 | /\/a\.out$/d
|
---|
| 19 | /\/core$/d
|
---|
| 20 | /\/bin\/[^/]*$/d'
|
---|
| 21 | } | {
|
---|
| 22 | # Compute checksums.
|
---|
| 23 | xargs crc
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.