class Mkduino::AutogenSh
Public Class Methods
new(output_filename = 'autogen.sh', options = {})
click to toggle source
Calls superclass method
# File lib/autogen_sh.rb, line 24 def initialize output_filename = 'autogen.sh', options = {} super output_filename, options end
Public Instance Methods
write_autogen_sh()
click to toggle source
# File lib/autogen_sh.rb, line 27 def write_autogen_sh puts("Writing #{@output_filename}") write_file do |f| f.puts <<-AUTOGEN_SH #!/bin/sh if [ -e 'Makefile.am' ] ; then echo "Makefile.am Exists - reconfiguring..." autoreconf --force --install -I config -I m4 echo echo echo "************************************" echo "** Now run mkdir build ; cd build ; ../configure --host=avr **" echo "************************************" exit fi echo "Lets get your project started!" echo '## Process this file with automake to produce Makefile.in' >> Makefile.am echo No Makefile.am AUTOGEN_SH end `chmod +x #{@output_directory}#{@output_filename}` end