retire nonsymbolic rootdev, dev2name
[minix.git] / commands / srccrc / srccrc.sh
blobc2a7ce7027d79f9500677e0007b7166832400f02
1 #!/bin/sh
3 # srccrc 1.0 - compute CRC checksums of the entire source tree
4 # Author: Kees J. Bot
5 cd /usr || exit
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