Skip to content

Commit

Permalink
'unported' dir, js file placeholders / todo list
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed Apr 16, 2008
1 parent b89d210 commit f5fe322
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _helpers/store_missing_funcs.php
Expand Up @@ -114,9 +114,10 @@ function jsFunctions($subcats, $function_homedir){

function jsFunctionStore($function, $subcat, $function_homedir){
$store_file = $function_homedir."/".$subcat."/".$function.".js";

file_put_contents($store_file, '// not yet ported. feel like it?' );
echo system("/usr/bin/svn add ".$store_file )."\n";
if(!file_exists($store_file)){
file_put_contents($store_file, '// not yet ported. feel like it?' );
echo system("/usr/bin/svn add ".$store_file )."\n";
}
}

$function_homedir = "/home/kevin/workspace/plutonia-phpjs/functions";
Expand All @@ -134,8 +135,7 @@ function jsFunctionStore($function, $subcat, $function_homedir){
$missing = missing2d($php_functions, $js_functions);
foreach($missing as $subcat=>$func_arr){
foreach($func_arr as $k=>$function){
jsFunctionStore($function, $subcat, $function_homedir);
die;
jsFunctionStore($function, $subcat, $unported_homedir);
}
}
?>

0 comments on commit f5fe322

Please sign in to comment.