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

Use RMT::VERSION in Makefile #201

Merged
merged 2 commits into from
Jul 6, 2018
Merged

Conversation

ikapelyukhin
Copy link
Contributor

Reduces number of places where the version has to be specified by one.

@suse-tests-pass
Copy link
Collaborator

suse-tests-pass commented Jul 6, 2018

1 Warning
⚠️ Unless this is a trivial change, please include a CHANGELOG entry.
Run osc vc in the package directory to add one.

Generated by 🚫 Danger

@@ -1,5 +1,5 @@
NAME = rmt-server
VERSION = 1.0.4
VERSION = $(shell ruby -e 'require "./lib/rmt.rb"; print RMT::VERSION')
Copy link
Contributor

Choose a reason for hiding this comment

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

when I execute the command I get shell: command not found
could $(ruby -e 'require "./lib/rmt.rb"; print RMT::VERSION') also work?

Copy link
Contributor Author

@ikapelyukhin ikapelyukhin Jul 6, 2018

Choose a reason for hiding this comment

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

How are you executing the command/what command are you executing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Run make dist. $(shell ... ) is Makefile syntax to execute shell commands.

Copy link
Contributor

Choose a reason for hiding this comment

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

sry I did run in via my CLI to test.
packaging works fore me so never mind

@lagartoflojo
Copy link
Contributor

lagartoflojo commented Jul 6, 2018

really nice improvement!!

edit: OK my funny gif is not working. I wanted to embed: https://media.giphy.com/media/2XtEQpM97Lvhe/giphy.gif

Copy link
Contributor

@Sergeykot Sergeykot left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@ikapelyukhin ikapelyukhin merged commit bca4800 into master Jul 6, 2018
@ikapelyukhin ikapelyukhin deleted the makefile_version_from_ruby branch July 6, 2018 13:57
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.

4 participants