diff options
author | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-08-04 19:50:30 +0200 |
---|---|---|
committer | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-12-19 22:53:27 +0100 |
commit | 55a7e9286ad685d468e11c1212a3f3e5e9d98a81 (patch) | |
tree | 99061eeb8fb254b6ad3fad953920ac3b6006078e /bin/just-the-docs | |
parent | fix user and psw (diff) | |
parent | Merge branch 'main' of github.com:hack-gpon/hack-gpon.github.io (diff) | |
download | hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.gz hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.bz2 hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.lz hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.xz hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.tar.zst hack-gpon.github.io-55a7e9286ad685d468e11c1212a3f3e5e9d98a81.zip |
Diffstat (limited to 'bin/just-the-docs')
-rw-r--r-- | bin/just-the-docs | 30 |
1 files changed, 15 insertions, 15 deletions
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 |