mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
test: fix distcheck BusyBox downloader for users with ~/.cache
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
29dea38f50
commit
6bf5d98569
1 file changed
+5
-5
+5
-5
@@ -55,20 +55,20 @@ $(DEST)/bin/$(BBBIN): $(DEST)/bin/$(BBBIN).sha256
|
|||||||
if [ -d $(CACHE) ]; then \
|
if [ -d $(CACHE) ]; then \
|
||||||
echo "Cannot find $(BBBIN), checking $(CACHE) ..."; \
|
echo "Cannot find $(BBBIN), checking $(CACHE) ..."; \
|
||||||
cd $(CACHE); \
|
cd $(CACHE); \
|
||||||
cp $(DEST)/bin/$(BBBIN).sha256 .; \
|
cp -v $(DEST)/bin/$(BBBIN).sha256 .; \
|
||||||
if ! sha256sum --status -c $(BBBIN).sha256; then \
|
if ! sha256sum --status -c $(BBBIN).sha256; then \
|
||||||
echo "No $(BBBIN), downloading $(BBURL) ..."; \
|
echo "No $(BBBIN), downloading $(BBURL) ..."; \
|
||||||
wget -o $@ $(BBURL); \
|
wget -O $(BBBIN) $(BBURL); \
|
||||||
else \
|
else \
|
||||||
echo "Found valid $(BBBIN) in cache!"; \
|
echo "Found valid $(BBBIN) in cache!"; \
|
||||||
cp $(BBBIN) $@; \
|
|
||||||
fi; \
|
fi; \
|
||||||
|
cp $(BBBIN) $@; \
|
||||||
|
cd $(dir $@); \
|
||||||
else \
|
else \
|
||||||
echo "Cannot find $(BBBIN), downloading ..."; \
|
echo "Cannot find $(BBBIN), downloading ..."; \
|
||||||
wget -O $@ $(BBURL); \
|
wget -O $@ $(BBURL); \
|
||||||
fi; \
|
fi; \
|
||||||
cd $(dir $@); \
|
sha256sum -c $(BBBIN).sha256 || (rm $@; false); \
|
||||||
sha256sum -c $(BBBIN).sha256; \
|
|
||||||
fi)
|
fi)
|
||||||
@chmod +x $@
|
@chmod +x $@
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user