Skip to content

Commit

Permalink
Fix the contrib/refresh_checksums.mk script by partially reverting #…
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge committed Oct 21, 2021
1 parent a4903fd commit e6c982a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions contrib/refresh_checksums.mk
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,20 @@ pack-checksum-llvmunwind: | pack-checksum-llvm.*unwind

# define how to pack parallel checksums into a single file format
pack-checksum-%: FORCE
@echo making "$(JULIAHOME)/deps/checksums/"'$*'
@echo making "$(JULIAHOME)/deps/checksums/$*"
@cd "$(JULIAHOME)/deps/checksums" && \
for each in $$(ls | grep -i '$*'); do \
if [ -d "$$each" ]; then \
for type in $$(ls "$$each"); do \
echo "$$each"/"$$type"/$$(cat "$$each"/"$$type"); \
rm "$$each"/"$$type"; \
if [ -d $$each ]; then \
for type in $$(ls $$each); do \
echo $$each/$$type/$$(cat $$each/$$type); \
rm $$each/$$type; \
done; \
rmdir "$$each"; \
rmdir $$each; \
fi; \
done > '$*'
done >> $*
@cd "$(JULIAHOME)/deps/checksums" && \
sort '$*' > '$*.tmp' && \
mv '$*.tmp' '$*'
sort $* > $*.tmp && \
mv $*.tmp $*

# This file is completely phony
FORCE:
Expand Down

0 comments on commit e6c982a

Please sign in to comment.