Skip to content

Commit

Permalink
Update checksum generation
Browse files Browse the repository at this point in the history
- generate checksum files for *all* deb packages
- formatting changes for rpm checksum file generation (NOOP)
- switch from unqualified path in `OUTPUTDIR` Makefile variable
  to fully-qualified `ROOTPATH` variable
  - NOTE: More of these changes pending

refs GH-471
  • Loading branch information
atc0005 committed Feb 6, 2023
1 parent ff5cfa9 commit de53ffc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -402,14 +402,16 @@ packages:

@echo " - DEB package checksum file"
@set -e ;\
DEB_PKG=$$(find $(OUTPUTDIR) -name "*.deb" -printf '%P' | head -n 1); \
cd $(OUTPUTDIR); \
$(CHECKSUMCMD) $${DEB_PKG} > $${DEB_PKG}.sha256 ;\
for file in $$(find $(ROOTPATH) -name "*.deb" -printf '%P'); do \
cd $(ROOTPATH); \
$(CHECKSUMCMD) $${file} > $${file}.sha256 ; \
done

@echo " - RPM package checksum file"
@set -e ;\
for file in $$(find $(OUTPUTDIR) -name "*.rpm" -printf '%P'); do \
cd $(OUTPUTDIR) && $(CHECKSUMCMD) $${file} > $${file}.sha256 ; \
for file in $$(find $(ROOTPATH) -name "*.rpm" -printf '%P'); do \
cd $(ROOTPATH); \
$(CHECKSUMCMD) $${file} > $${file}.sha256 ; \
done

@echo
Expand Down

0 comments on commit de53ffc

Please sign in to comment.