Skip to content

Commit

Permalink
Merge pull request #285 from fyndiq/fixed-makefile
Browse files Browse the repository at this point in the history
fixed so makefile works on mac
  • Loading branch information
Håkan Nylén committed Oct 26, 2015
2 parents a7f15c7 + 03dc819 commit 08d2b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ COVERAGE_DIR = $(BASE)/coverage
BIN_DIR = $(BASE)/vendor/bin

COMMIT = $(shell git rev-parse --short HEAD)
MODULE_VERSION = $(shell grep -Po "VERSION = '\K[^']*" src/backoffice/FmUtils.php)
MODULE_VERSION = $(shell perl -nle "print $$& if /VERSION = \'\K([\d.]+)/" src/backoffice/FmUtils.php)

build: clean
mkdir $(BUILD_DIR)
rsync -a --exclude='.*' $(SRC_DIR) $(BUILD_DIR)
mv $(BUILD_DIR)/src $(BUILD_DIR)/fyndiqmerchant
# replace COMMIT hash
sed -i'' 's/XXXXXX/$(COMMIT)/g' $(BUILD_DIR)/fyndiqmerchant/backoffice/FmUtils.php
sed -i'' -e 's/XXXXXX/$(COMMIT)/g' $(BUILD_DIR)/fyndiqmerchant/backoffice/FmUtils.php
#cp $(DOCS_DIR)/* $(BUILD_DIR)/fyndiqmerchant
cp $(BASE)/LICENSE $(BUILD_DIR)/fyndiqmerchant
cd $(BUILD_DIR); zip -r -X fyndiq-prestashop-module-v$(MODULE_VERSION)-$(COMMIT).zip fyndiqmerchant/
Expand Down

0 comments on commit 08d2b49

Please sign in to comment.