Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell scripts unix line endings #13

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gene-pavlovsky
Copy link

Added gitattributes - use mostly auto CRLF mode, but force LF for shell scripts (.sh files and ascsh) in particular. UNIX shell can't handle CRLF in scripts, Ruby seems to be ok so I didn't force LF for ascshd.

Second change is a fix - ascsh script didn't work due to a typo - : in java classpath option, should be ;.

…out with UNIX line endings (LF).

Otherwise, when cloning the repo and running `ant install` on a Windows system, the ascsh and ascshd scripts have Windows line endings (CRLF), and are unusable if run with e.g. Cygwin.
Otherwise semicolon was treated as end of statement, and shell tried to execute compiler.jar.
…forward slashes in path to ascsh.

When running on Windows, AIR_SDK_HOME might contain backslashes, causing a problem with the `IO.popen` call. Ensuring forward slashes fixes the issue.
Works with Cygwin/ruby.
@gene-pavlovsky
Copy link
Author

The branch name is not entirely appropriate anymore, I should have made two separate PRs.
Anyway I want to say that ascshd works for me on Windows. I'm using ruby that comes with Cygwin. I had to modify ascshd slightly to make it work, namely replace backslashes with slashes in path to ascsh.

@jcward
Copy link
Owner

jcward commented Apr 18, 2016

I've been travelling, I'll check this out in the next couple of days. Thanks!

@gene-pavlovsky
Copy link
Author

gene-pavlovsky commented Apr 19, 2016

Nice, whenever you have time.
Btw, the Java classpath separator I've changed - maybe it was ok for UNIX? Java on windows expects classpaths separated by semicolons (barfs on colons), does UNIX Java expect colons (barfs on semicolons)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants