source: trunk/minix/commands/scripts/srccrc.sh@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 442 bytes
Line 
1#!/bin/sh
2#
3# srccrc 1.0 - compute CRC checksums of the entire source tree
4# Author: Kees J. Bot
5cd /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.