#!/bin/bash

for i in *; do
	echo -n $i ...
	other=$(type -path $i)
	if [ -z $other ]; then
		echo " missing"
	else
		if ! $(cmp $i $other > /dev/null); then
			echo -n " changed ($other)"
			if [ ! -z $1 ]; then
				cp -af $other .
			fi
		else
			echo -n " ok"
		fi
		echo
	fi
done
