Skip to content

Commit

Permalink
fix for debian 8 and higher
Browse files Browse the repository at this point in the history
  • Loading branch information
boumenot committed Aug 13, 2017
1 parent d37d1ab commit 81d2185
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
Expand Up @@ -4,6 +4,7 @@ EXTENSIONS = \
CustomScript \
DSC \
OSPatching \
VMAccess \
VMBackup

clean:
Expand All @@ -12,7 +13,7 @@ clean:
init:
@mkdir -p build

build: init $(EXTENSIONS) VMAccess
build: init $(EXTENSIONS)

define make-extension-zip
$(eval NAME = $(shell grep -Pom1 "(?<=<Type>)[^<]+" $@/manifest.xml))
Expand All @@ -25,10 +26,7 @@ endef

$(EXTENSIONS):
$(make-extension-zip)

VMAccess:
$(make-extension-zip)
@cd Common/ && echo ./waagentloader.py | zip -9 -@ ../build/$(NAME)-$(VERSION).zip > /dev/null
@cd Common/WALinuxAgent-2.0.16 && echo ./waagent | zip -9 -@ ../../build/$(NAME)-$(VERSION).zip > /dev/null

.PHONY: clean build $(EXTENSIONS) VMAccess
.PHONY: clean build $(EXTENSIONS)

0 comments on commit 81d2185

Please sign in to comment.