Blob
1 #!/bin/bash3 aflag=false4 if [ "$1" = -a ]; then5 aflag=true6 shift7 fi9 files="$@"10 if [ $# = 0 ]; then11 files=$(echo ./test.rc;12 grep -l '^#!/usr/local/plan9/bin/rc' /usr/local/plan9/bin/{*,*/*} 2>/dev/null;13 grep -R -l '^#!/bin/rc' $HOME/pub/plan9 | egrep -v 'plan9/(lib/(oui|pci)|sys/man|sys/lib/man|sys/lib/scsicodes)' 2>/dev/null)14 fi16 for i in $files17 do18 if ! diff <(./o.rc -DY $i 2>&1) <(./o.rc -D $i 2>&1); then19 echo '^^^' $i20 ! $aflag && exit 121 fi22 done