- Add CloudronStack/output/CloudronPackages-Artifacts/tirreno/ directory and its contents - Includes package manifest, Dockerfile, source code, documentation, and build artifacts - Add tirreno-1761840148.tar.gz as a build artifact - Add tirreno-cloudron-package-1761841304.tar.gz as the Cloudron package - Include all necessary files for the tirreno Cloudron package This adds the complete tirreno Cloudron package artifacts to the repository.
		
			
				
	
	
		
			17 lines
		
	
	
		
			728 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			728 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
php5to4 ("../spyc.php", 'spyc-latest.php4');
 | 
						|
 | 
						|
function php5to4 ($src, $dest) {
 | 
						|
  $code = file_get_contents ($src);
 | 
						|
  $code = preg_replace ('#(public|private|protected)\s+\$#i', 'var \$', $code);
 | 
						|
  $code = preg_replace ('#(public|private|protected)\s+static\s+\$#i', 'var \$', $code);
 | 
						|
  $code = preg_replace ('#(public|private|protected)\s+function#i', 'function', $code);
 | 
						|
  $code = preg_replace ('#(public|private|protected)\s+static\s+function#i', 'function', $code);
 | 
						|
  $code = preg_replace ('#throw new Exception\\(([^)]*)\\)#i', 'trigger_error($1,E_USER_ERROR)', $code);
 | 
						|
  $code = str_replace ('self::', '$this->', $code);
 | 
						|
  $f = fopen ($dest, 'w');
 | 
						|
  fwrite($f, $code);
 | 
						|
  fclose ($f);
 | 
						|
  print "Written to $dest.\n";
 | 
						|
} |