mirror of
https://github.com/DoctorWkt/pdp7-unix.git
synced 2026-01-13 15:27:39 +00:00
20 lines
361 B
Bash
Executable File
20 lines
361 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# shell script to help compare src/{cmd,sys}/file and scans/file
|
|
|
|
SCAN=$1
|
|
SRC=$2
|
|
|
|
TMPDIR=/tmp/compare$$
|
|
trap "rm -fr $TMPDIR" 0
|
|
mkdir -p $TMPDIR/scan $TMPDIR/src
|
|
|
|
F=`basename $SCAN`
|
|
TSCAN=$TMPDIR/scan/$F
|
|
TSRC=$TMPDIR/src/$F
|
|
|
|
sed -e '/^ *"/d' -e 's/ *".*$//' < $SCAN > $TSCAN
|
|
sed -e '/^ *"/d' -e 's/ *".*$//' < $SRC > $TSRC
|
|
|
|
diff -uw $TSCAN $TSRC
|