summaryrefslogtreecommitdiff
path: root/convertfile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'convertfile.inc')
-rwxr-xr-xconvertfile.inc25
1 files changed, 12 insertions, 13 deletions
diff --git a/convertfile.inc b/convertfile.inc
index 77c239d..a8aed41 100755
--- a/convertfile.inc
+++ b/convertfile.inc
@@ -3,21 +3,20 @@
function pspice_to_kicad_convert_file()
{
-$upload_root_path=pspice_to_kicad_upload_path();
-$convert_root_path=pspice_to_kicad_convert_path();
-$uploadfolder = arg(3);
-$uploadfile=arg(4);
-$filenamearray = explode('.', $uploadfile);
-$filename=$filenamearray[0];
-$filePath=$upload_root_path."".$uploadfolder."/".$uploadfile;
- _convert_run_script($convert_root_path ,$uploadfolder, $filePath ,$filename, $uploadfile);
+ $upload_root_path = pspice_to_kicad_upload_path();
+ $convert_root_path = pspice_to_kicad_convert_path();
+ $uploadfolder = arg(3);
+ $uploadfile = arg(4);
+ $filenamearray = explode('.', $uploadfile);
+ $filename = $filenamearray[0];
+ $filePath = $upload_root_path . "" . $uploadfolder . "/" . $uploadfile;
+ _convert_run_script($convert_root_path, $uploadfolder, $filePath, $filename, $uploadfile);
}
-
-function _convert_run_script($convert_root_path, $uploadfolder ,$filePath, $filename ,$uploadfile)
+function _convert_run_script($convert_root_path, $uploadfolder, $filePath, $filename, $uploadfile)
{
//var_dump($convert_root_path . " " . $uploadfolder . " " . $filePath . " " . $filename." ".$uploadfile);
- $sh_command = "./run.sh " . $convert_root_path. " " . $uploadfolder . " " . $filePath . " " .$filename ." ".$uploadfile;
- exec($sh_command);
-
+ $sh_command = "./run.sh " . $convert_root_path . " " . $uploadfolder . " " . $filePath . " " . $filename . " " . $uploadfile;
+ exec($sh_command);
+
}