File: check-diff

package info (click to toggle)
freecdb 0.78.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 728 kB
  • sloc: ansic: 1,733; sh: 360; makefile: 25
file content (11 lines) | stat: -rwxr-xr-x 177 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# /* Public domain */

set -e
test -r "$1".dist
test -r "$1".local
while read i; do
  read j 0<&7 || exit 1
  test "$i" = "$j" || exit 1
done 7<"$1".dist <"$1".local