Skip to content

Commit

Permalink
Rename .img artifacts in build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
benhylau committed Apr 26, 2018
1 parent f1b3432 commit a335a4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mesh-orange-images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ BOARDS += sun8i-h2-plus-orangepi-zero
build_images: download_source
$(MAKE) -C $(BUILD_DIR) build-depends
$(foreach board,$(BOARDS),$(MAKE) -C $(BUILD_DIR) clean; $(MAKE) -C $(BUILD_DIR)/boards/$(board) image;)
cp $(BUILD_DIR)/output/* $(OUTPUT_DIR)
if test -n "${GITHUB_RELEASE_VERSION}"; \
then rename "s/.img/-${GITHUB_RELEASE_VERSION}_$(PROFILE).img/" $(OUTPUT_DIR)/*.img; \
else rename "s/.img/-$(PROFILE).img/" $(OUTPUT_DIR)/*.img; \
then rename "s/.img/-${GITHUB_RELEASE_VERSION}_$(PROFILE).img/" $(BUILD_DIR)/output/*.img; \
else rename "s/.img/-$(PROFILE).img/" $(BUILD_DIR)/output/*.img; \
fi
cp $(BUILD_DIR)/output/* $(OUTPUT_DIR)

download_source: mkdir_build
git clone https://github.com/tomeshnet/mesh-orange.git -b $(TAG) $(BUILD_DIR)
Expand Down

0 comments on commit a335a4b

Please sign in to comment.