File: 0010-add-live-command.patch

package info (click to toggle)
nanoc 4.13.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,576 kB
  • sloc: ruby: 41,538; sh: 31; makefile: 15
file content (28 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Fri, 29 Jan 2021 07:43:55 -0300
Subject: try to load nanoc-live if installed

Last-Update: 2020-07-27
Forwarded: no

 This enables the `live` option from the nanoc cli command
---
 nanoc/bin/nanoc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/nanoc/bin/nanoc b/nanoc/bin/nanoc
index 33bbdad..88f32fc 100755
--- a/nanoc/bin/nanoc
+++ b/nanoc/bin/nanoc
@@ -9,6 +9,11 @@ begin
 rescue LoadError
 end
 
+begin
+  require 'nanoc-live'
+rescue LoadError
+end
+
 require 'nanoc/orig_cli'
 
 if File.file?('Gemfile') && !defined?(Bundler)