From 6ac4b4158bc4c3a6ea106efb33188b93e0dbd880 Mon Sep 17 00:00:00 2001 From: David Carlos de Araújo Silva Date: Tue, 8 Mar 2016 14:34:27 +0100 Subject: [PATCH] Change gems shebang --- Makefile | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 4a86f64..e26609e 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,9 @@ all: bundle install $(BUNDLE_OPTS) --local --deployment grep -rl '/this/will/be/overwritten/or/wrapped/anyways/do/not/worry/ruby' vendor/bundle/ruby/gems/*/bin | xargs --no-run-if-empty sed -i -e '1 s|.*|#!/usr/bin/env ruby|' + # Change ruby interpreter, to use rh-ruby22 + grep -rl '#!/usr/bin/env ruby' vendor/bundle/ruby/gems/ | xargs --no-run-if-empty sed -i -e 's|.*|#!/opt/rh/rh-ruby22/root/usr/bin/ruby |' + dist: $(TARBALL) $(TARBALL): @@ -39,6 +42,7 @@ update: clean bundle update bundle install $(BUNDLE_OPTS) --path vendor/bundle + clean: $(RM) -r .bundle/ vendor/bundle/ $(TARBALL) -- libgit2 0.21.2