Top / ASIPS

ASIPS

使い方

べんりにつかう

いちいち3回コマンド実行するのがめどいので てきとーrubyスクリプトにしました

パスの通ったところでどうぞ

使い方:ruby hoge.rb [inputfile(spec_hoge.xml)]

if (ARGV[0] == nil) then
  puts ARGV[0]
  puts "[filename]\n"
  exit
end

spec= ARGV[0]
no_cnt= spec.gsub(".xml", "_nocnt.xml")
struct= spec.gsub(".xml", "_structure.xml")
v= spec.gsub(".xml", ".v")

`rm -f #{no_cnt}`
`rm -f #{struct}`
`rm -f #{v}`

`MakeStructure -input #{spec} -output #{no_cnt}`
if (!File.exists?(no_cnt)) then
  exit
end
`ApplyCounter -spec #{spec} -input #{no_cnt} -output #{struct} `
if (!File.exists?(struct)) then
  exit
end
Link: MenuBar(152d) ,
Site admin: kam1610, PukiWiki 1.4.7 Copyright © 2001-2006 PukiWiki Developers Team. License is GPL.
Based on "PukiWiki" 1.3 by yu-ji. Powered by PHP 5.2.17.