summaryrefslogtreecommitdiff
path: root/minix/commands/srccrc/srccrc.sh
blob: c2a7ce7027d79f9500677e0007b7166832400f02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
#	srccrc 1.0 - compute CRC checksums of the entire source tree
#							Author: Kees J. Bot
cd /usr || exit

{
	# List the file names of all files in /usr/include and /usr/src.
	find include src/* -type f
} | {
	# Sort the list to make them comparable.
	sort
} | {
	# Remove files like *.o, *.bak, etc.
	sed -e '/\.o$/d
		/\.a$/d
		/\.bak$/d
		/\/a\.out$/d
		/\/core$/d
		/\/bin\/[^/]*$/d'
} | {
	# Compute checksums.
	xargs crc
}