# Setup.rb copies .bat files to linux system

**URL:** <https://www.ruby-forum.com/t/setup-rb-copies-bat-files-to-linux-system/69783>\
**Category:** Ruby\
**Created:** [September 24, 2006, 3:16am UTC](https://www.ruby-forum.com/t/setup-rb-copies-bat-files-to-linux-system/69783 "2006-09-24T03:16:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Trans](https://www.ruby-forum.com/u/Trans)\
**Post date:** [September 24, 2006, 3:16am UTC](https://www.ruby-forum.com/t/setup-rb-copies-bat-files-to-linux-system/69783/1 "2006-09-24T03:16:33Z")

</div>

I created .bat files for windows, and I assume they should be in the  
conventional bin/ directory. But setup.rb copies .bat files to my linux  
system. Should setup.rb be made to aviod this, or is there already an  
appropriate way to do this?

Thanks,  
T.

---

<div class="post-metadata">

**Author:** ![Trans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Trans](https://www.ruby-forum.com/u/Trans)\
**Post date:** [September 24, 2006, 3:48am UTC](https://www.ruby-forum.com/t/setup-rb-copies-bat-files-to-linux-system/69783/2 "2006-09-24T03:48:36Z")

</div>

Trans wrote:

> I created .bat files for windows, and I assume they should be in the  
> conventional bin/ directory. But setup.rb copies .bat files to my linux  
> system. Should setup.rb be made to aviod this, or is there already an  
> appropriate way to do this?
> 
> Thanks,  
> T

I don’t think there’s any O/S-dependent code in setup.rb, and even if  
there were I’m not sure it would be a good idea to have setup.rb use  
file extensions to make installation decisions. You could add a  
post-install hook to handle O/S-dependent aspects of your installation.
