Skip to content

Add MRUBY_COMMIT_ID to global constant

License

Notifications You must be signed in to change notification settings

buty4649/mruby-commit-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mruby-commit-id

This repository adds two global constants, MRUBY_COMMIT_ID and MRUBY_COMMIT_ID_SHORT, which indicate the commit ID of the mruby source currently being built.

Note

This mrbgem will not function properly without a .git directory included in the mruby source code.

Usage

MRuby::Build.new do |conf|
  conf.gem github:'buty4649/mruby-commit-id'
-- snip --
end

Examples

$ ./bin/mruby -e 'puts MRUBY_COMMIT_ID'
f2dc44215c8207e8ba7c161fd699c55075a266e1

$ ./bin/mruby -e 'puts MRUBY_COMMIT_ID_SHORT'
f2dc44215

About

Add MRUBY_COMMIT_ID to global constant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published