example_about.rb
Simple example showing how to use Paludis version constants.
00001 #!/usr/bin/env ruby 00002 # vim: set sw=4 sts=4 et tw=80 : 00003 00004 =begin description 00005 Simple example showing how to use Paludis version constants. 00006 =end 00007 00008 require 'Paludis' 00009 00010 print "Built using Paludis ", Paludis::VersionMajor, ".", Paludis::VersionMinor, 00011 ".", Paludis::VersionMicro, Paludis::VersionSuffix 00012 00013 if not Paludis::GitHead.empty? 00014 print ' ', Paludis::GitHead 00015 end 00016 00017 print "\n" 00018
