Update Ring2EXE - Use OS Functions from the StdLib
@@ -668,46 +668,3 @@ func CheckNoCCompiler cBaseFolder,cFileName
ok
OSRenameFile(cFileName+".ringo","ring.ringo")
-
-func OSDeleteFolder cFolder
- if isWindows()
- systemSilent("rd /s /q " + cFolder)
- else
- systemSilent("rm -r " + cFolder)
- ok
-
-func OSDeleteFile cFile
- if isWindows()
- systemSilent("del " + cFile)
- else
- systemSilent("rm " + cFile)
- ok
-
-func OSCopyFile cFile
- if isWindows()
- cFile = substr(cFile,"/","\")
- systemSilent("copy " + cFile)
- else
- systemSilent("cp " + cFile + " .")
- ok
-
-func OSCreateOpenFolder cFolder
- MakeDir(cFolder)
- chdir(cFolder)
-
-func OSRenameFile cOldFile,cNewFile
- if isWindows()
- systemSilent("rename " + cOldFile + " " + cNewFile)
- but isLinux() or isMacosx()
- systemSilent("mv " + cOldFile + " " + cNewFile)
- ok
-
-func OSCopyFolder cParentFolder,cFolder
- cCurrentFolder = currentdir()
- OSCreateOpenFolder(cFolder)
- if isWindows()
- systemsilent("copy " + cParentFolder + cFolder)
- else
- systemsilent("cp -R " + cParentFolder + cFolder + " ./")
- ok
- chdir(cCurrentFolder)
