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

Improve y.sh script (to potentially allow dependencies) and improve build_system help message #344

Merged
merged 2 commits into from
Sep 25, 2023

Conversation

GuillaumeGomez
Copy link
Member

No description provided.

exec ./build_system/target/y "$@"
cd build_system
cargo build --release
cd ..
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using pushd and popd would also be an option. Mostly a matter of preference for simple cases like this, but when you have a lot of nested directories or there is a symlink, pushd+popd less error prone.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case I used cd because I didn't want extra things to be displayed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe 2>/dev/null works for that, which makes it less nice than cd .. in this case though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see 2>/dev/null in this script and I don't really want to make the script any more complex than it already is (at a minimum, which is very good as is ^^').

@antoyo antoyo merged commit 71febd9 into rust-lang:master Sep 25, 2023
21 of 32 checks passed
@GuillaumeGomez GuillaumeGomez deleted the improvements branch September 25, 2023 21:20
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.

3 participants