repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libc, libutil: remove compat hacks
[minix.git]
/
commands
/
srccrc
/
srccrc.sh
blob
c2a7ce7027d79f9500677e0007b7166832400f02
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
}