class Array
def scramble() dup.scramble! end # scramble v. 0.15
def swap(i,j) self[i],self[j] = at(j),at(i) end # by cilibrar
def scramble!() each_index() { |i| swap(i,i+rand(size-i)) } end
end
I have made a software packagae, complearn-0.6.2.tar.gz , that uses autoconf and automake to manage system configuration. One of the standard options is:
In many autoconf or automake enabled software packages written in C (such as GNU / FSF utilities) this creates subdirectories like
and so on for many common naming conventions. Unfortunately I cannot understand how to correctly pass this option on to ruby mkmf:
I have seen that there is an option to make using
a
but then this creates deep directory structure
and to me it seems that the Is there a better solution to this problem? |
SearchUseful StuffArticle Calendar
|
|||||||||||||||||||||||||||||||||||||||||||||||||||