dolibarr-doxygen-build.pl 998 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/perl
  2. #--------------------------------------------------------------------
  3. # Lance la generation de la doc dev doxygen
  4. #--------------------------------------------------------------------
  5. # Detecte repertoire du script
  6. ($DIR=$0) =~ s/([^\/\\]+)$//;
  7. $DIR||='.';
  8. $DIR =~ s/([^\/\\])[\\\/]+$/$1/;
  9. $OPTIONS="";
  10. #$OPTIONS="-d Preprocessor";
  11. $CONFFILE="dolibarr-doxygen.doxyfile";
  12. use Cwd;
  13. my $dir = getcwd;
  14. print "Current dir is: $dir\n";
  15. print "Running dir for doxygen must be: $DIR/doxygen\n";
  16. if (! -s $CONFFILE)
  17. {
  18. print "Error: current directory for building Dolibarr doxygen documentation is not correct.\n";
  19. print "\n";
  20. print "Change your current directory then, to launch the script, run:\n";
  21. print '> perl ..\dolibarr-doxygen-build.pl (on Windows)'."\n";
  22. print '> perl ../dolibarr-doxygen-build.pl (on Linux or BSD)'."\n";
  23. sleep 4;
  24. exit 1;
  25. }
  26. print "Running doxygen, please wait...\n";
  27. $result=`doxygen $OPTIONS $CONFFILE 2>&1`;
  28. print $result;
  29. 0;