mirror of
https://github.com/troglobit/editline.git
synced 2025-06-24 00:01:12 +08:00
Add .sha256 checksum to release builds
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
37a7255e4e
commit
46446d00b5
20
Makefile.am
20
Makefile.am
@ -8,17 +8,9 @@ if ENABLE_EXAMPLES
|
|||||||
SUBDIRS += examples
|
SUBDIRS += examples
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## Generate MD5 checksum file
|
|
||||||
MD5 = md5sum
|
|
||||||
md5-dist:
|
|
||||||
@for file in $(DIST_ARCHIVES); do \
|
|
||||||
$(MD5) $$file > ../$$file.md5; \
|
|
||||||
mv $$file ../; \
|
|
||||||
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) | grep $(PACKAGE_VERSION)` ]; then \
|
||||||
echo; \
|
echo; \
|
||||||
printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n"; \
|
printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n"; \
|
||||||
printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn; \
|
printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn; \
|
||||||
@ -39,13 +31,19 @@ package:
|
|||||||
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 md5-dist package
|
release: release-hook distcheck
|
||||||
|
@for file in $(DIST_ARCHIVES); do \
|
||||||
|
md5sum $$file > ../$$file.md5; \
|
||||||
|
sha256sum $$file > ../$$file.sha256; \
|
||||||
|
done
|
||||||
|
@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 "%-40s Distribution tarball\n" $$file; \
|
printf "%-40s Distribution tarball\n" $$file; \
|
||||||
printf "%-40s " $$file.md5; cat ../$$file.md5 | cut -f1 -d' '; \
|
printf "%-40s " $$file.md5; cat ../$$file.md5 | cut -f1 -d' '; \
|
||||||
|
printf "%-40s " $$file.sha256; cat ../$$file.sha256 | cut -f1 -d' '; \
|
||||||
done
|
done
|
||||||
@for file in `cd ..; ls *$(PACKAGE)*_$(subst _,.,$(VERSION))*`; do \
|
@for file in `cd ..; ls *$(PACKAGE)*_$(subst _,.,$(VERSION))*`; do \
|
||||||
printf "%-40s Debian/Ubuntu package file\n" $$file; \
|
printf "%-40s Debian/Ubuntu package file\n" $$file; \
|
||||||
|
Loading…
Reference in New Issue
Block a user