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
|