Afficher un message
Vieux 17/09/2007, 18h40   #5
Pierre-Charles David
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Run script against every file in a directory

2007/9/16, Chris Gallagher <cgallagher@gmail.com>:
> Hi,
>
> I'm currently tryin to implement a ruby script which will run through a
> directory of javascript files and run jsmin.rb against each of them as a
> part of my build script. im running into a number of silly issues so im
> just wondering if theres anyone out there thats done this kind of thing?


How about this:

Dir["**/*.js"].each { |js| system("ruby jsmin.rb #{js}") }

--
http://pcdavid.net/

  Réponse avec citation
 
Page generated in 0,04798 seconds with 9 queries