• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl AX_COPY_IF_CHANGE(source, dest)
2dnl copy source to dest if they don't compare equally or if dest doesn't exist
3AC_DEFUN([AX_COPY_IF_CHANGE], [
4if test -r $2; then
5	if cmp $1 $2 > /dev/null; then
6		echo $2 is unchanged
7	else
8		cp -f $1 $2
9	fi
10else
11	cp -f $1 $2
12fi
13])
14