Commit 6226e703a3ac0f66543fd85732da1bf73fc0b6a1

Authored by David Silva
1 parent 04eb5151
Exists in master

Atributes portal url to GEMFILE_URL var

Showing 1 changed file with 7 additions and 4 deletions   Show diff stats
@@ -5,15 +5,18 @@ PREFIX = /usr @@ -5,15 +5,18 @@ PREFIX = /usr
5 WGET = wget 5 WGET = wget
6 BRANCH = v0.8.1.colab 6 BRANCH = v0.8.1.colab
7 BUNDLE_OPTS = --verbose --without='development test cucumber' 7 BUNDLE_OPTS = --verbose --without='development test cucumber'
  8 +GEMFILE_URL=https://portal.softwarepublico.gov.br/gitlab/mezuro/prezento/raw/
8 9
9 all: 10 all:
10 bundle install $(BUNDLE_OPTS) --local --deployment 11 bundle install $(BUNDLE_OPTS) --local --deployment
11 - 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|' 12 + grep -rl '/usr/local/bin/ruby' vendor/bundle/ruby/gems/*/ | \
  13 + xargs --no-run-if-empty sed -i -e '1,2 s|.*|#!/usr/bin/env ruby|'
12 14
13 dist: $(TARBALL) 15 dist: $(TARBALL)
14 16
15 $(TARBALL): 17 $(TARBALL):
16 - (git archive --prefix=$(NAME)-deps-$(VERSION)/ HEAD | gzip > $@) || ($(RM) $@; false) 18 + (git archive --prefix=$(NAME)-deps-$(VERSION)/ HEAD | \
  19 + gzip > $@) || ($(RM) $@; false)
17 20
18 install: all 21 install: all
19 mkdir -p $(DESTDIR)$(PREFIX)/lib/$(NAME)/vendor 22 mkdir -p $(DESTDIR)$(PREFIX)/lib/$(NAME)/vendor
@@ -24,8 +27,8 @@ install: all @@ -24,8 +27,8 @@ install: all
24 27
25 update: clean 28 update: clean
26 $(RM) Gemfile* 29 $(RM) Gemfile*
27 - $(WGET) -O Gemfile https://portal.softwarepublico.gov.br/gitlab/mezuro/prezento/raw/$(BRANCH)/Gemfile --no-check-certificate  
28 - $(WGET) -O Gemfile.lock https://portal.softwarepublico.gov.br/gitlab/mezuro/prezento/raw/$(BRANCH)/Gemfile.lock --no-check-certificate 30 + $(WGET) -O Gemfile $(GEMFILE_URL)/$(BRANCH)/Gemfile --no-check-certificate
  31 + $(WGET) -O Gemfile.lock $(GEMFILE_URL)/$(BRANCH)/Gemfile.lock --no-check-certificate
29 $(MAKE) bundle 32 $(MAKE) bundle
30 33
31 bundle: 34 bundle: