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

Support for Cygwin #225

Closed
abelsromero opened this Issue Aug 13, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@abelsromero

abelsromero commented Aug 13, 2015

This is not a big issue, but this request aims to offer a nice first time experience to cygwin users.
To use jbake with cygwin, you have to give exec permissions to the jbake.bat command. But then when you use tab to autocomplete the command both jbake and jbake.bat.
You can also do other changes to end with a clean jbake command, but it's a p*** .

I found that this can easily fixed replacing the main jbake command like this:

#!/bin/bash
EXEC_LOC="`dirname "$0"`"
EXEC_PARENT="`dirname $EXEC_LOC`"
if [ `uname -o` = "Cygwin" ]
then
    java -jar $(cygpath -w "${EXEC_PARENT}/jbake-core.jar") $@
else
    java -jar "${EXEC_PARENT}/jbake-core.jar" $@
fi
@jonbullock

This comment has been minimized.

Show comment
Hide comment
@jonbullock

jonbullock Aug 16, 2015

Member

Thanks for the suggestion, I'll include this in the v2.5.0 release.

Member

jonbullock commented Aug 16, 2015

Thanks for the suggestion, I'll include this in the v2.5.0 release.

@jonbullock jonbullock added this to the v2.5.0 milestone Aug 16, 2015

@jonbullock jonbullock self-assigned this Aug 16, 2015

@jonbullock jonbullock closed this in 039872c Jul 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment