From 6226e703a3ac0f66543fd85732da1bf73fc0b6a1 Mon Sep 17 00:00:00 2001 From: David Carlos Date: Thu, 3 Sep 2015 10:06:55 -0300 Subject: [PATCH] Atributes portal url to GEMFILE_URL var --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d63435e..06ab92e 100644 --- a/Makefile +++ b/Makefile @@ -5,15 +5,18 @@ PREFIX = /usr WGET = wget BRANCH = v0.8.1.colab BUNDLE_OPTS = --verbose --without='development test cucumber' +GEMFILE_URL=https://portal.softwarepublico.gov.br/gitlab/mezuro/prezento/raw/ all: bundle install $(BUNDLE_OPTS) --local --deployment - grep -rl '/usr/local/bin/ruby' vendor/bundle/ruby/gems/*/ | xargs --no-run-if-empty sed -i -e '1,2 s|.*|#!/usr/bin/env ruby|' + grep -rl '/usr/local/bin/ruby' vendor/bundle/ruby/gems/*/ | \ + xargs --no-run-if-empty sed -i -e '1,2 s|.*|#!/usr/bin/env ruby|' dist: $(TARBALL) $(TARBALL): - (git archive --prefix=$(NAME)-deps-$(VERSION)/ HEAD | gzip > $@) || ($(RM) $@; false) + (git archive --prefix=$(NAME)-deps-$(VERSION)/ HEAD | \ + gzip > $@) || ($(RM) $@; false) install: all mkdir -p $(DESTDIR)$(PREFIX)/lib/$(NAME)/vendor @@ -24,8 +27,8 @@ install: all update: clean $(RM) Gemfile* - $(WGET) -O Gemfile https://portal.softwarepublico.gov.br/gitlab/mezuro/prezento/raw/$(BRANCH)/Gemfile --no-check-certificate - $(WGET) -O Gemfile.lock https://portal.softwarepublico.gov.br/gitlab/mezuro/prezento/raw/$(BRANCH)/Gemfile.lock --no-check-certificate + $(WGET) -O Gemfile $(GEMFILE_URL)/$(BRANCH)/Gemfile --no-check-certificate + $(WGET) -O Gemfile.lock $(GEMFILE_URL)/$(BRANCH)/Gemfile.lock --no-check-certificate $(MAKE) bundle bundle: -- libgit2 0.21.2