107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# File 'lib/mkduino.rb', line 107
def write_autogen_sh
puts("Writing autogen.sh")
File.open('autogen.sh',"w") do |f|
f.puts "#!/bin/sh\nif [ -e 'Makefile.am' ] ; then\necho \"Makefile.am Exists - reconfiguring...\"\nautoreconf --force --install -I config -I m4\necho\necho\necho \"************************************\"\necho \"** Now run mkdir build ; cd build ; ../configure --host=avr **\"\necho \"************************************\"\nexit\nfi\necho \"Lets get your project started!\"\n\necho '## Process this file with automake to produce Makefile.in' >> Makefile.am\necho No Makefile.am\n"
end
end
|