Changeset 6858
- Timestamp:
- 09/27/08 00:52:45 (5 years ago)
- Files:
-
- modules/branches/2.5/fw_fop/install.php (modified) (2 diffs)
- modules/branches/2.5/publish.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/fw_fop/install.php
r6493 r6858 68 68 * fw_fop install script 69 69 */ 70 $bin_source = dirname(__FILE__)."/bin/*"; 71 $bin_dest = $amp_conf['AMPBIN'] 70 72 71 73 $htdocs_panel_source = dirname(__FILE__)."/htdocs_panel/*"; … … 84 86 } 85 87 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 86 93 ?> modules/branches/2.5/publish.pl
r6831 r6858 24 24 # 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. 25 25 # 26 # TODO: ADD FOP until we can get into a module27 26 # 28 27 if (system("rm -rf $framework/agi-bin $framework/bin $framework/htdocs $framework/htdocs_panel $framework/upgrades $framework/libfreepbx.install.php $framework/CHANGES")) { … … 73 72 74 73 # 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 others74 # and change that. Remove retrieve_op_conf_from_mysql.pl now handled by fw_fop. Also some others. 76 75 # 77 76 # TODO: check if these are stiff there and need to be special cased … … 86 85 die "FATAL: failed to trim modules/_cache\n"; 87 86 } 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 } 88 90 } 89 91 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 } 91 95 if (system("svn export http://svn.freepbx.org/freepbx/$fwbranch/amp_conf/htdocs_panel $fw_fop/htdocs_panel")) { 92 96 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"; 93 109 } 94 110 … … 256 272 257 273 system("svn update $rawname"); 258 my $lastpublish = `svnversion $rawname`; 274 my $lastpublish = `svn info $rawname | grep Revision: | cut -f 2 -d ' '`; 275 chomp($lastpublish); 259 276 260 277 if ($debug) { … … 262 279 print "svn add ../../release/$rver/$filename\n"; 263 280 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"; 265 282 print "svn ci ../../release/$rver/$filename $rawname/module.xml -m \"Module Publish Script: $rawname $vers\"\n"; 266 283 } else {
