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