/
githubmirror
/
device-mapper-multipath
Обзор
Документация
Войти
/
githubmirror
/
device-mapper-multipath
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Makefile
25 строк
777 B
Ivan Makfinsky
srpm imported for 'GoOSe Linux 6.0
07 дек 2011, 19:36
07 дек 2011, 19:36
4613d8f
Код
Авторство
О чём код?
# This makefile is downloading any file found in # the 'sources' file already existing in this directory # and validating the sha256sum of the archive against it. NAME := device-mapper-multipath define find-common-dir for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then echo "$$d"; break ; fi ; done endef COMMON_DIR := $(shell $(find-common-dir)) include $(COMMON_DIR)/Makefile.common SOURCEFILES := $(shell cat sources 2>/dev/null | awk '{ print $$2 }' | awk -F'*' '{ print $$2 }') sources: $(SOURCEFILES) $(SOURCEFILES): @for sourcefile in $(SOURCEFILES); do \ $(CLIENT) $(LOOKASIDE_URI)/$(NAME)/$${sourcefile}; \ done sha256sum -c sources || ( echo 'SHA256 check failed' && rm $(SOURCEFILES); exit 1 ) clean: rm $(SOURCEFILES)