File: newer-setup-rb.diff

package info (click to toggle)
ruby-tioga 1.19.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 10,568 kB
  • sloc: ansic: 39,885; ruby: 17,303; sh: 79; makefile: 31
file content (25 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (4)
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
Index: ruby-tioga/pre-setup.rb
===================================================================
--- ruby-tioga.orig/pre-setup.rb
+++ ruby-tioga/pre-setup.rb
@@ -4,7 +4,7 @@ require 'fileutils'
 # First, generate include files and preambles
 system "#{config("rubyprog")} misc/mk_tioga_sty.rb"
 
-if Config::CONFIG["target"] =~ /darwin/i
+if RbConfig::CONFIG["target"] =~ /darwin/i
   File.open("bin/repreview", 'w') do |f|
     f.puts '#!/bin/sh'
     f.puts "osascript #{config('bindir')}/Reload_Preview_Document.scpt $*"
Index: ruby-tioga/misc/mk_tioga_sty.rb
===================================================================
--- ruby-tioga.orig/misc/mk_tioga_sty.rb
+++ ruby-tioga/misc/mk_tioga_sty.rb
@@ -4,6 +4,7 @@
 require 'date'
 
 # We make up the color constants from the Tioga file.
+$: << "."
 require 'lib/Tioga/ColorConstants.rb'
 
 # Generate colors