#!/bin/sh
# This tests the relink command by creating a set  of  small
# files  in  the  tmp and tmp/relink01d directories and then
# running relink to identify the identical  files  and  link
# them  together.   The  verbose output should agree exactly
# with the stderr/relink01 file.

rm -rf tmp/relink01*

mkdir tmp/relink01d

echo "This is just a test."  >tmp/relink01a1
echo "This is not a test."   >tmp/relink01b1
echo "This is another test." >tmp/relink01c1
echo "This is a third test." >tmp/relink01e2
sleep 1
echo "This is just a test."  >tmp/relink01a2
echo "This is'nt a test."    >tmp/relink01b2
echo "This ain't a test."    >tmp/relink01d/relink01d-b2
echo "This is another test." >tmp/relink01d/relink01d-c2
echo "This is a third test." >tmp/relink01d/relink01d-e1

relink +rv tmp

