-
Notifications
You must be signed in to change notification settings - Fork 45
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
Conversation
9f02068
to
76b74f4
Compare
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') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
really nice improvement!! edit: OK my funny gif is not working. I wanted to embed: https://media.giphy.com/media/2XtEQpM97Lvhe/giphy.gif |
7a26577
to
3102ed4
Compare
3102ed4
to
c636b91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Reduces number of places where the version has to be specified by one.