Skip to content

Commit

Permalink
Replace deprecated MD5 checksums with SHA256 in make dist
Browse files Browse the repository at this point in the history
On macOS, use `brew install coreutils` to get sha256sum.
  • Loading branch information
koutcher committed Feb 12, 2021
1 parent 17af047 commit 2d82ec2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test/coverage
test/tools/test-graph
test/tmp
tig-*.tar.gz
tig-*.tar.gz.md5
tig-*.tar.gz.sha256
tig.spec
tools/doc-gen
tig.dSYM
2 changes: 1 addition & 1 deletion INSTALL.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository http://github.com/jonas/tig[git://github.com/jonas/tig.git].

The latest version is:
https://github.com/jonas/tig/releases/download/tig-2.5.2/tig-2.5.2.tar.gz[tig-2.5.2]
https://github.com/jonas/tig/releases/download/tig-2.5.2/tig-2.5.2.tar.gz.md5[(md5)]
https://github.com/jonas/tig/releases/download/tig-2.5.2/tig-2.5.2.tar.gz.sha256[(sha256)]

*Note:* Do not use the tar.gz file for version 2.0 because it will fail
to compile due to issue https://github.com/jonas/tig/pull/283[#283] and
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ uninstall:
$(QUIET_UNINSTALL_EACH)tools/uninstall.sh "$(DESTDIR)$(docdir)/tig/$(doc)";)

clean: clean-test clean-coverage
$(Q)$(RM) -r $(TARNAME) *.spec tig-*.tar.gz tig-*.tar.gz.md5 .deps _book node_modules
$(Q)$(RM) -r $(TARNAME) *.spec tig-*.tar.gz tig-*.tar.gz.sha256 .deps _book node_modules
$(Q)$(RM) -r $(compdb_dir) compile_commands.json
$(Q)$(RM) $(EXE) $(TOOLS) $(OBJS) core doc/*.xml src/builtin-config.c
$(Q)$(RM) $(OBJS:%.o=%.gcda) $(OBJS:%.o=%.gcno)
Expand Down Expand Up @@ -222,7 +222,7 @@ dist: configure tig.spec
$(TAR) --delete $(TARNAME)/Makefile > $(TARNAME).tar && \
find $(TARNAME) -type f -print0 | LC_ALL=C sort -z | $(TAR) --mtime=$(shell git show -s --format=@%ct) --mode=o=rX,ug+rw,a-s --owner=root --group=root --null -T - -rf $(TARNAME).tar && \
gzip -f -n -9 $(TARNAME).tar && \
md5sum $(TARNAME).tar.gz > $(TARNAME).tar.gz.md5
sha256sum $(TARNAME).tar.gz > $(TARNAME).tar.gz.sha256
$(Q)$(RM) -r $(TARNAME)

rpm: dist
Expand Down

0 comments on commit 2d82ec2

Please sign in to comment.