//
// ----------------------------------------------------------------------------
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-// Copyright (C) 2003 John Dallaway
//
// This program is part of the eCos host tools.
//
#include <direct.h> /* for getcwd() */
#else
#include <unistd.h> /* for getcwd() */
+#include <limits.h> /* for PATH_MAX */
#endif
#ifdef __CYGWIN__
#include <windows.h>
status = true;
#ifdef __CYGWIN__
char buf[100];
- strcpy(buf, "mount.exe -f -t -u x: /ecos-x");
+ strcpy(buf, "mount.exe -f x: /ecos-x");
//printf("Cwd_win32: %s\n", cwd_win32);
if ( cwd_win32[1] == ':' )
{
- buf[19] = tolower(cwd_win32[0]);
- buf[28] = tolower(cwd_win32[0]);
+ buf[13] = cwd_win32[0];
+ buf[22] = cwd_win32[0];
system(buf);
}
if ( repository[1] == ':' )
{
- buf[19] = tolower(repository[0]);
- buf[28] = tolower(repository[0]);
+ buf[13] = repository[0];
+ buf[22] = repository[0];
system(buf);
}
if ( !install_prefix.empty() )
//printf("Install prefix: %s\n", install_prefix.c_str());
if ( install_prefix[1] == ':' )
{
- buf[19] = tolower(install_prefix[0]);
- buf[28] = tolower(install_prefix[0]);
+ buf[13] = install_prefix[0];
+ buf[22] = install_prefix[0];
system(buf);
}
}