TwlIPL/build/tests/DisplaySystemInformation/ARM9/makeMaking.rb
aoki_ryoma 8bda091c44 バナー、bsfファイルを更新
カードアプリにもバナーを付加
Launcher TitleID LoをSecure User InfoからSecure HW Infoへ移動


git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2228 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2008-08-22 02:38:24 +00:00

54 lines
999 B
Ruby
Executable File

fHead = open("makeHeader.txt")
fFoot = open("makeFooter.txt")
contentHead = fHead.read
contentFoot = fFoot.read
fHead.close
fFoot.close
fCond = open("makeConditions.txt")
numArg = 0
argList = Array.new
fCond.gets.split(/\s+/).each do |arg|
numArg += 1
argList.push arg
end
puts "argList"
puts argList
fileIdx = 0
while l = fCond.gets
next if l[0] == '#'
argIdx = 0
puts "file making: Makefile." + fileIdx.to_s
f = open("Makefile." + fileIdx.to_s, "w")
f.puts contentHead
l.split(/\t+/).each do |value|
strVal = "TRUE" if value == "1"
strVal = "FALSE" if value == "0"
strVal = "DONTCARE" if value == "D"
if argList[argIdx] == "GAMECODE" || argList[argIdx] == "FILE_IDX"
argSet = "#{argList[argIdx]}\t=\t#{value}"
else
argSet = "#{argList[argIdx]}\t=\t#{strVal}"
end
f.puts argSet
argIdx += 1
end
f.puts contentFoot
f.close
fileIdx += 1
end
fCond.close
(0...fileIdx).each{ |i| print "Makefile.#{i} "}