aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby/example_about.rb
blob: fbb65af73d323aa683ed4adea3c567e9609df18a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env ruby
# vim: set sw=4 sts=4 et tw=80 :

=begin description
Simple example showing how to use Paludis version constants.
=end

require 'Paludis'

print "Built using Paludis ", Paludis::VersionMajor, ".", Paludis::VersionMinor,
    ".", Paludis::VersionMicro, Paludis::VersionSuffix

if not Paludis::GitHead.empty?
    print ' ', Paludis::GitHead
end

print "\n"