Skip to content
Snippets Groups Projects
Select Git revision
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • 3.9 default
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
40 results

dolibarr-doxygen-getversion.pl

Blame
  • dolibarr-doxygen-getversion.pl 604 B
    #!/usr/bin/perl
    #--------------------------------------------------------------------
    # Script to get version of a source file
    # Does not work with cygwin cvs command on Windows.
    #
    #--------------------------------------------------------------------
    
    # Usage: dolibarr-doxygen-getversion.pl pathtofilefromdolibarrroot
    
    $file=$ARGV[0];
    if (! $file) 
    {
    	print "Usage: dolibarr-doxygen-getversion.pl pathtofilefromdolibarrroot\n";
    	exit;
    }
    
    $commande='cvs status "'.$file.'" | sed -n \'s/^[ \]*Working revision:[ \t]*\([0-9][0-9\.]*\).*/\1/p\'';
    #print $commande;
    $result=`$commande 2>&1`;
    
    print $result;