Fixed os_copyfile() for Posix

This commit is contained in:
starkos 2009-01-08 19:33:14 +00:00
parent 29f6048b6c
commit f8ca7b42f6
2 changed files with 32 additions and 32 deletions

File diff suppressed because one or more lines are too long

View File

@ -4,9 +4,9 @@
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*/
#include <stdlib.h>
#include "premake.h"
int os_copyfile(lua_State* L)
{
int z;
@ -16,7 +16,7 @@ int os_copyfile(lua_State* L)
#if PLATFORM_WINDOWS
z = CopyFile(src, dst, FALSE);
#else
luaL_pushfstring(L, "cp %s %s", src, dst);
lua_pushfstring(L, "cp %s %s", src, dst);
z = (system(lua_tostring(L, -1)) == 0);
#endif