Changeset 6858

Show
Ignore:
Timestamp:
09/27/08 00:52:45 (5 years ago)
Author:
p_lindheimer
Message:

move retrieve_op_conf_from_mysql.pl from framework to fw_fop

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/fw_fop/install.php

    r6493 r6858  
    6868 * fw_fop install script 
    6969 */ 
     70  $bin_source = dirname(__FILE__)."/bin/*"; 
     71  $bin_dest = $amp_conf['AMPBIN'] 
    7072 
    7173  $htdocs_panel_source = dirname(__FILE__)."/htdocs_panel/*"; 
     
    8486  } 
    8587 
     88  exec("cp -rf $bin_source $bin_dest 2>&1",$out,$ret); 
     89  if ($ret != 0) { 
     90    fw_fop_print_errors($htdocs_panel_source, $bin_dest, $out); 
     91  } 
     92 
    8693?> 
  • modules/branches/2.5/publish.pl

    r6831 r6858  
    2424    # temporarily chosen not to include FOP since it is likely FOP may be handled by a FOP module going forward. Othewise we will add it here. 
    2525    # 
    26     # TODO: ADD FOP until we can get into a module 
    2726    # 
    2827    if (system("rm -rf $framework/agi-bin $framework/bin $framework/htdocs $framework/htdocs_panel $framework/upgrades $framework/libfreepbx.install.php $framework/CHANGES")) { 
     
    7372     
    7473    # Remove from htdocs root mainstyle.css and index.html as these are owned by root (need to investigate why these are there 
    75     # and change that. Also some others 
     74    # and change that. Remove retrieve_op_conf_from_mysql.pl now handled by fw_fop. Also some others. 
    7675    # 
    7776    # TODO: check if these are stiff there and need to be special cased 
     
    8685      die "FATAL: failed to trim modules/_cache\n"; 
    8786    } 
     87    if (system("rm -rf $framework/bin/retrieve_op_conf_from_mysql.pl")) { 
     88      die "FATAL: failed to trim bin/retrieve_op_conf_from_mysql.pl\n"; 
     89    } 
    8890  } 
    8991  if ($moddir =~ /$fw_fop/) { 
    90  
     92    if (system("rm -rf $fw_fop/bin $fw_fop/htdocs_panel")) { 
     93      die "FATAL: failed to remove previoulsly exported directories\n"; 
     94    } 
    9195    if (system("svn export http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/htdocs_panel $fw_fop/htdocs_panel")) { 
    9296      die "FATAL: failed to export htdocs_panel directory\n"; 
     97    } 
     98    if (system("svn co --non-recursive http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/bin $fw_fop/tmp")) { 
     99      die "FATAL: failed to checkout bin\n"; 
     100    } 
     101    if (system("mkdir $fw_fop/bin")) { 
     102      die "FATAL: failed to create $fw_fop/bin\n"; 
     103    } 
     104    if (system("mv $fw_fop/tmp/retrieve_op_conf_from_mysql.pl $fw_fop/bin")) { 
     105      die "FATAL: failed to mv retrieve_op_conf_from_mysql.pl to $fw_fop/bin\n"; 
     106    } 
     107    if (system("rm -rf $fw_fop/tmp")) { 
     108      die "FATAL: failed to remove $fw_fop/tmp\n"; 
    93109    } 
    94110 
     
    256272 
    257273  system("svn update $rawname"); 
    258   my $lastpublish = `svnversion $rawname`; 
     274  my $lastpublish = `svn info $rawname | grep Revision: | cut -f 2 -d ' '`; 
     275  chomp($lastpublish); 
    259276 
    260277  if ($debug) { 
     
    262279    print "svn add ../../release/$rver/$filename\n"; 
    263280    print "svn ps svn:mime-type application/tgz ../../release/$rver/$filename\n"; 
    264     print "svn ps lastpublish $lastpublish $moddir"; 
     281    print "svn ps lastpublish '$lastpublish' $moddir\n"; 
    265282    print "svn ci ../../release/$rver/$filename $rawname/module.xml -m \"Module Publish Script: $rawname $vers\"\n"; 
    266283  } else {