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

cygwin make fails due to CRLF in LASTPASS-VERSION-GEN #662

Open
MrPeteH opened this issue Sep 19, 2023 · 0 comments
Open

cygwin make fails due to CRLF in LASTPASS-VERSION-GEN #662

MrPeteH opened this issue Sep 19, 2023 · 0 comments

Comments

@MrPeteH
Copy link

MrPeteH commented Sep 19, 2023

Download, install dependencies, run make, get these errors:

./LASTPASS-VERSION-GEN: line 2: $'\r': command not found
./LASTPASS-VERSION-GEN: line 5: $'\r': command not found
./LASTPASS-VERSION-GEN: line 8: $'\r': command not found
./LASTPASS-VERSION-GEN: line 11: $'\r': command not found
./LASTPASS-VERSION-GEN: line 17: syntax error near unexpected token `elif'
'/LASTPASS-VERSION-GEN: line 17: `elif test -d ${GIT_DIR:-.git} -o -f .git &&

And as a result, there's no version.h file. :(

The issue: windows-style CRLF's in the files.

Workaround: remove the CR's (be sure the file is still executable!), run make clean then make. (sed 's/\r//' is your friend :) )

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

No branches or pull requests

1 participant