Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate ChangeLog file only if git metadata got updated #2435

Merged
merged 4 commits into from
May 11, 2024

Commits on May 10, 2024

  1. 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]>
    jimklimov committed May 10, 2024
    Configuration menu
    Copy the full SHA
    cc47966 View commit details
    Browse the repository at this point in the history
  2. Makefile.am: update ChangeLog recipe to be a no-op if the existing fi…

    …le is newer than anything in a NUT_GITDIR (may be not "./git/" directly) [networkupstools/nut-website#52]
    
    Signed-off-by: Jim Klimov <[email protected]>
    jimklimov committed May 10, 2024
    Configuration menu
    Copy the full SHA
    9a06cc8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d0ce977 View commit details
    Browse the repository at this point in the history
  4. docs/Makefile.am: re-evaluate calls to "make ../ChangeLog" always, no…

    …w that the parent Makefile knows when to slack off [networkupstools/nut-website#52]
    
    Signed-off-by: Jim Klimov <[email protected]>
    jimklimov committed May 10, 2024
    Configuration menu
    Copy the full SHA
    d58dcb1 View commit details
    Browse the repository at this point in the history