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

Build: Better error handling and let git ignore temporary build directories. #183

Merged
merged 1 commit into from Nov 11, 2021

Conversation

aknrdureegaesr
Copy link
Contributor

@aknrdureegaesr aknrdureegaesr commented Nov 6, 2021

The build_linux.sh script says what it is doing and stops when encountering an error.

Directories that are constructed temporarily during the build
are now ignored by git, as we do not want to version those.

Ah, one more thing: bash now officially lives in /usr/bin, the /bin directory is deprecated.

Vy 73, Andreas, DJ3EI

@tmiw
Copy link
Collaborator

tmiw commented Nov 6, 2021

The general C/C++ .gitignore template should be included in .gitignore too for those who want to build freedv-gui manually and not via the script. Also, it would be good to have the following for build_osx.sh:

build_osx
hamlib-code
hamlib
macdylibbundler

@drowe67
Copy link
Owner

drowe67 commented Nov 6, 2021

Thanks @aknrdureegaesr 🙂

@tmiw are your comments above something you would like to see in this PR, or more general issues for another PR?

@tmiw
Copy link
Collaborator

tmiw commented Nov 6, 2021

@tmiw are your comments above something you would like to see in this PR, or more general issues for another PR?

I figured it'd be good to include here since we're already touching .gitignore. However, it can go in another PR if preferred.

The build_linux.sh scripts stops when encountering an error
and reports what it is doing.

Directories constructed temporarily during the build
and files commonly constructed by the build
ignored by git, as we do not want to version those.

/usr/bin has become the official dwelling place of bash.
@tmiw
Copy link
Collaborator

tmiw commented Nov 7, 2021

Looks good here 👍

@aknrdureegaesr
Copy link
Contributor Author

aknrdureegaesr commented Nov 7, 2021

At your service...

Adding the directories was easy. I'm not entirely sure what a good C/C++ - template would be. So I checked which kind of files are actually created below build_linux, took some care that those are not also present in already checked-in material, and this is how I came up with the list you see now.

Assuming you do not want to have several commits in the history, I replaced my previous commit with the new suggestion.

@tmiw
Copy link
Collaborator

tmiw commented Nov 8, 2021

@aknrdureegaesr, actually, several commits is no problem. Something for future reference.

@drowe67, any additional comments or should I go ahead and merge?

@drowe67
Copy link
Owner

drowe67 commented Nov 11, 2021

@tmiw I'm happy if you are 🙂

@tmiw tmiw merged commit e3bc29c into drowe67:master Nov 11, 2021
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.

None yet

3 participants