Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
ruby2.1.2315
generate_rubygemprovides.awk
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File generate_rubygemprovides.awk of Package ruby2.1.2315
#!/usr/bin/awk -f # # Generate 'Provides' for embedded rubygems # # Call-seq: # generate_rubygemprovides.awk <ruby-version> <arch> <gemname> <gemmajor> <gemminor> <gemmicro> [ <gemtiny> ] # # Provides: rubygem(<rubyversion>:<gemname>) = <gemversion> # Provides: rubygem(<rubyversion>:<gemname>:<gemmajorversion>) = <gemversion> # Provides: rubygem(<rubyversion>:<gemname>:<gemmajorversion>.<gemminorversion>) = <gemversion> # Provides: rubygem(<rubyversion>:<gemname>:<gemmajorversion>.<gemminorversion>.<gemtinyversion) = <gemversion> # Provides: rubygem(<rubyversion>:<gemname>:<gemversion>) = <gemversion> # Provides: rubygem(<gemname>) = <gemversion> # Provides: rubygem-<gemname> = <gemversion> # Provides: rubygem-<gemname> = <gemversion>-<rubyrelease> # Provides: rubygem-<gemname>(<arch>) = <gemversion>-<rubyrelease> # Provides: rubygem-<gemname>-<gemmajorversion> = <gemversion> # Provides: rubygem-<gemname>-<gemmajorversion>_<gemminorversion> = <gemversion> # Provides: rubygem-<gemname>-<gemmajorversion>_<gemminorversion>_<gemmicroversion> = <gemversion> # Provides: rubygem-<gemname>-<gemmajorversion>_<gemminorversion>_<gemmicroversion>_<gemtinyversion> = <gemversion> BEGIN { rbver = ARGV[1] arch = ARGV[2] name = ARGV[3] major = ARGV[4] minor = ARGV[5] micro = ARGV[6] tiny = ARGV[7] if (tiny != "") { version = major "." minor "." micro "." tiny } else { version = major "." minor "." micro } print "Provides: rubygem(ruby:" rbver ":" name ") = " version print "Provides: rubygem(ruby:" rbver ":" name ":" major ") = " version print "Provides: rubygem(ruby:" rbver ":" name ":" major "." minor ") = " version print "Provides: rubygem(ruby:" rbver ":" name ":" major "." minor "." micro ") = " version if (tiny != "") { print "Provides: rubygem(ruby:" rbver ":" name ":" major "." minor "." micro "." tiny ") = " version } print "Provides: rubygem(ruby:" rbver ":" name ":" version ") = " version print "Provides: rubygem(" name ") = " version print "Provides: rubygem-" name " = " version # not needed currently # if ( arch == "x86_64") { # print "Provides: rubygem-" name "(" arch ") = " version # } # print "Provides: rubygem-" name "-" major " = " version # print "Provides: rubygem-" name "-" major "_" minor " = " version # print "Provides: rubygem-" name "-" major "_" minor "_" micro " = " version # if (tiny != "") { # print "Provides: rubygem-" name "-" major "_" minor "_" micro "_" tiny " = " version # } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor