#!/bin/sh # Test that saving changes that don't really change the underlying file # leave the original file intact root=$abs_top_builddir/build/test-idempotent hosts=$root/etc/hosts rm -rf $root mkdir -p $(dirname $hosts) cat < $hosts 127.0.0.1 localhost EOF touch -r $0 $hosts cp -p $hosts $hosts.stamp augtool --nostdinc -r $root -I $abs_top_srcdir/lenses > /dev/null < /dev/null <