File: pre-setup.rb

package info (click to toggle)
ruby-tioga 1.14-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 10,508 kB
  • sloc: ansic: 39,112; ruby: 17,031; sh: 79; makefile: 29
file content (15 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# We do two things here:
require 'fileutils'

# First, generate include files and preambles
system "#{config("rubyprog")} misc/mk_tioga_sty.rb"

if Config::CONFIG["target"] =~ /darwin/i
  File.open("bin/repreview", 'w') do |f|
    f.puts '#!/bin/sh'
    f.puts "osascript #{config('bindir')}/Reload_Preview_Document.scpt $*"
  end
  FileUtils.copy("misc/Reload_Preview_Document.scpt", "bin")
else
  puts "Skipping MacOS-specific files"
end