sustrik / ribosome

Simple code generator
248 stars 21 forks source link

Add wrapper script that automatically picks a Ribosome flavor based on the input #50

Open JesseTG opened 8 years ago

JesseTG commented 8 years ago

That way, build processes don't have to depend on which flavor of Ribosome is used.

sustrik commented 8 years ago

Good idea. Can be done in shell. The caveat being that it won't work on Windows.

JesseTG commented 8 years ago

Why not a Batch version, too?

sustrik commented 8 years ago

The ugly thing about it is that then you have 2 scripts instead of 3. Somehow better, but it's not clear whether it's worth the additional complexity. Stackoverflow suggest couple of ways to make a file be both shell sctipt and windows batch file, but all of them look like quite a nasty hacks :(

JesseTG commented 8 years ago

"Add with 2 scripts"? I don't follow.

sustrik commented 8 years ago

I meant ribosome.bat and ribosome.sh instead of ribosome.js ribosome.py and ribosome.rb. (Wording fixed in the comment above.)