mirror of
https://github.com/troglobit/libite.git
synced 2026-10-01 05:22:34 +07:00
Makefile: add .sha256 checksums to release target
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+11
-13
@@ -6,13 +6,6 @@ pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libite.pc
|
||||
SUBDIRS = src tests
|
||||
|
||||
## Generate MD5 checksum file
|
||||
MD5 = md5sum
|
||||
md5-dist:
|
||||
@for file in $(DIST_ARCHIVES); do \
|
||||
$(MD5) $$file > ../$$file.md5; \
|
||||
done
|
||||
|
||||
## Check if tagged in git
|
||||
release-hook:
|
||||
@if [ ! `git tag | grep $(PACKAGE_VERSION)` ]; then \
|
||||
@@ -36,15 +29,20 @@ package build-deb:
|
||||
@dpkg-buildpackage -uc -us -B
|
||||
|
||||
## Target to run when building a release
|
||||
release: release-hook distcheck package md5-dist
|
||||
release: release-hook distcheck package
|
||||
@for file in $(DIST_ARCHIVES); do \
|
||||
md5sum $$file > ../$$file.md5; \
|
||||
sha256sum $$file > ../$$file.sha256; \
|
||||
done
|
||||
@mv $(DIST_ARCHIVES) ../
|
||||
@echo
|
||||
@echo "Resulting release files:"
|
||||
@echo "================================================================="
|
||||
@for file in $(DIST_ARCHIVES); do \
|
||||
printf "%-32s Distribution tarball\n" $$file; \
|
||||
printf "%-32s " $$file.md5; cat ../$$file.md5 | cut -f1 -d' '; \
|
||||
@for file in $(DIST_ARCHIVES); do \
|
||||
printf "%-32s Distribution tarball\n" $$file; \
|
||||
printf "%-32s " $$file.md5; cat ../$$file.md5 | cut -f1 -d' '; \
|
||||
printf "%-32s " $$file.sha256; cat ../$$file.sha256 | cut -f1 -d' '; \
|
||||
done
|
||||
@for file in `cd ..; ls $(PACKAGE)*_$(VERSION)*`; do \
|
||||
printf "%-32s Debian/Ubuntu package\n" $$file; \
|
||||
@for file in `cd ..; ls $(PACKAGE)*_$(VERSION)*`; do \
|
||||
printf "%-32s Debian/Ubuntu package\n" $$file; \
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user