Changeset 4734

Show
Ignore:
Timestamp:
08/06/07 22:05:36 (6 years ago)
Author:
p_lindheimer
Message:

put in a quick and dirty check for syntax errors in the publish.pl script - only top level module directory checked

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/publish.pl

    r4515 r4734  
    4343    # this is what we wanted: 
    4444    # 
    45     # if (system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/libfreepbx.install.php $framework/libfreepbx.install.php")) { 
     45    # if (system("svn export https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch/libfreepbx.install.php $framework/libfreepbx.install.php")) 
    4646    # 
    4747    if (system("svn co --non-recursive https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/$fwbranch $framework/tmp")) { 
     
    118118      next if ($x =~ /module.xml/); 
    119119      $files .= "$x "; 
     120 
     121      # Quick and dirty check for php syntax errors at the top level of module directories. Should probably 
     122      # do this recursively in the future. Also - checks all files now but php -l seems to be ok with that. 
     123      # 
     124      if (system("php -l $x")) { 
     125        die "FATAL: php syntax error detected in $x\n"; 
     126      } 
    120127    } 
    121128  }