diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2016-12-15 10:19:54 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2016-12-17 00:25:15 +0100 |
commit | 5e2bbd8ae1229d55d18d46ed697c0aba3a191b35 (patch) | |
tree | fa6bb8c5eb82ada3704332c8bca55012071e2432 /Makefile | |
parent | 1f89580a1e8f3ca21f5b6780fce0a1aebaaa2c7f (diff) | |
download | hurd-5e2bbd8ae1229d55d18d46ed697c0aba3a191b35.tar.gz hurd-5e2bbd8ae1229d55d18d46ed697c0aba3a191b35.tar.bz2 hurd-5e2bbd8ae1229d55d18d46ed697c0aba3a191b35.zip |
* Makefile (gen-ChangeLog): Remove ChangeLog files first.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -155,15 +155,14 @@ ChangeLog_files = \ .PHONY: gen-ChangeLog gen-ChangeLog: $(AM_V_GEN)if test -d $(top_srcdir)/.git; then \ + rm -f $(ChangeLog_files) && \ (cd $(top_srcdir)/ && \ ./gitlog-to-changelog --strip-tab \ $(gen_start_commit).. && \ - echo) >> cl-t && \ + echo) >> ChangeLog && \ for f in $(ChangeLog_files); do \ (cd $(top_srcdir)/ && \ - git show $(gen_start_commit):$$f) >> cl-t && \ - rm -f $$f && \ - mv cl-t $$f \ + git show $(gen_start_commit):$$f) >> $$f \ || exit $$?; \ done; \ fi |