Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile.am: update ChangeLog recipe to be a no-op if the existing fi…
…le is newer than .git/HEAD [networkupstools/nut-website#52] if test -e .git/HEAD && ( rm -f "`find "$@" -not -newer .git/HEAD`" || true ) 2>/dev/null && ls -la .git/HEAD "$@" 2>/dev/null ; then SKIP ; else WORK ; fi Hopefully this takes care of corner cases: * No .git/HEAD => WORK (may be unsuccessfully, maybe not - e.g. Git submodules referring to parent) * `rm` fails, maybe `find` returns empty => DON'T CARE, go to LS * `ls` fails (one of target files is absent - e.g. ChangeLog removed or never was there) => WORK Only if the ChangeLog is still there after the attempt on its life, SKIP and keep it Signed-off-by: Jim Klimov <[email protected]>
- Loading branch information