aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc/checkparse
blob: 1ff84667b59d9fcfb646a3b1b9e9684cef45d775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

files="$@"
if [ $# = 0 ]; then
	files=$(echo ./test.rc;
		grep -l '^#!/usr/local/plan9/bin/rc' /usr/local/plan9/bin/{*,*/*} 2>/dev/null;
		grep -l '^#!/bin/rc' $HOME/pub/plan9/rc/bin/{*,*/*} 2>/dev/null)
fi

for i in $files
do
	if ! diff <(./o.rc -DY $i 2>&1) <(./o.rc -D $i 2>&1); then
		echo '#' $i
		exit 1
	fi
done