Changeset 7473

Show
Ignore:
Timestamp:
09/25/07 14:34:01
Author:
robert
Message:

Added --major/minor/path-number support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/applications/osgversion/osgversion.cpp

    r7436 r7473  
    673673    } 
    674674     
     675    if (arguments.read("--major-number")) 
     676    { 
     677        std::cout<<OPENSCENEGRAPH_MAJOR_VERSION<<std::endl; 
     678        return 0; 
     679    } 
     680     
     681    if (arguments.read("--minor-number")) 
     682    { 
     683        std::cout<<OPENSCENEGRAPH_MINOR_VERSION<<std::endl; 
     684        return 0; 
     685    } 
     686     
     687    if (arguments.read("--patch-number")) 
     688    { 
     689        std::cout<<OPENSCENEGRAPH_PATCH_VERSION<<std::endl; 
     690        return 0; 
     691    } 
     692     
    675693    if (arguments.read("--soversion-number")) 
    676694    { 
     
    679697    } 
    680698     
     699 
    681700    if (arguments.read("--openthreads-version-number")) 
    682701    { 
     
    685704    } 
    686705     
     706     
     707    if (arguments.read("--openthreads-major-number")) 
     708    { 
     709        std::cout<<OPENTHREADS_MAJOR_VERSION<<std::endl; 
     710        return 0; 
     711    } 
     712     
     713    if (arguments.read("--openthreads-minor-number")) 
     714    { 
     715        std::cout<<OPENTHREADS_MINOR_VERSION<<std::endl; 
     716        return 0; 
     717    } 
     718     
     719    if (arguments.read("--openthreads-patch-number")) 
     720    { 
     721        std::cout<<OPENTHREADS_PATCH_VERSION<<std::endl; 
     722        return 0; 
     723    } 
     724     
     725 
    687726    if (arguments.read("--openthreads-soversion-number")) 
    688727    {