From 669e2c60c51c9df52e8fa1ae8fffc86eb8794bd0 Mon Sep 17 00:00:00 2001 From: Giovanni Condello Date: Thu, 4 Aug 2022 19:41:23 +0200 Subject: AFM PLOAM logging --- bin/just-the-docs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'bin/just-the-docs') diff --git a/bin/just-the-docs b/bin/just-the-docs index 858365b..e05a942 100644 --- a/bin/just-the-docs +++ b/bin/just-the-docs @@ -1,16 +1,16 @@ -#!/usr/bin/env ruby - -gem_dir = File.expand_path("..",File.dirname(__FILE__)) -$LOAD_PATH.unshift gem_dir # Look in gem directory for resources first. -exec_type = ARGV[0] - -if exec_type == 'rake' then - require 'rake' - require 'pp' - pwd=Dir.pwd - Dir.chdir(gem_dir) # We'll load rakefile from the gem's dir. - Rake.application.init - Rake.application.load_rakefile - Dir.chdir(pwd) # Revert to original pwd for any path args passed to task. - Rake.application.invoke_task(ARGV[1]) +#!/usr/bin/env ruby + +gem_dir = File.expand_path("..",File.dirname(__FILE__)) +$LOAD_PATH.unshift gem_dir # Look in gem directory for resources first. +exec_type = ARGV[0] + +if exec_type == 'rake' then + require 'rake' + require 'pp' + pwd=Dir.pwd + Dir.chdir(gem_dir) # We'll load rakefile from the gem's dir. + Rake.application.init + Rake.application.load_rakefile + Dir.chdir(pwd) # Revert to original pwd for any path args passed to task. + Rake.application.invoke_task(ARGV[1]) end \ No newline at end of file -- cgit v1.2.3