File: pre-setup.rb

package info (click to toggle)
rdtool 0.6.38-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 940 kB
  • sloc: ruby: 8,213; lisp: 387; sh: 33; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env ruby
# -*- mode: ruby; coding: utf-8; indent-tabs-mode: nil -*-
#
# Copyright(C) Youhei SASAKI All rights reserved.
# $Lastupdate: 2012/05/06 23:15:30$
#
# License: Ruby's License or GPL-2+
#
# Code:
Dir.chdir("#{srcdir_root}")
Dir.glob("./lib/rd/*.ry").each { |f|
  obj = f.gsub(/\.ry$/,'.tab.rb')
  unless FileTest.exists?(obj)
    puts "racc #{f} -o #{obj}"
    system "racc #{f} -o #{obj}" unless srcfile?(obj)
  end
}