You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(16) |
Aug
(203) |
Sep
(142) |
Oct
(113) |
Nov
(73) |
Dec
(27) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(7) |
Feb
(38) |
Mar
(6) |
Apr
(1) |
May
(9) |
Jun
(104) |
Jul
(6) |
Aug
(11) |
Sep
(13) |
Oct
(6) |
Nov
(15) |
Dec
(37) |
2008 |
Jan
(17) |
Feb
(4) |
Mar
(6) |
Apr
(4) |
May
(2) |
Jun
(5) |
Jul
(1) |
Aug
(3) |
Sep
(21) |
Oct
(7) |
Nov
|
Dec
(3) |
2009 |
Jan
(4) |
Feb
(15) |
Mar
|
Apr
(34) |
May
(44) |
Jun
(12) |
Jul
(6) |
Aug
(15) |
Sep
(20) |
Oct
(10) |
Nov
(1) |
Dec
(20) |
2010 |
Jan
(19) |
Feb
(5) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <dan...@us...> - 2007-06-22 17:02:22
|
Revision: 977 http://svn.sourceforge.net/cegcc/?rev=977&view=rev Author: dannybackx Date: 2007-06-22 10:02:19 -0700 (Fri, 22 Jun 2007) Log Message: ----------- remove Removed Paths: ------------- tags/cegcc-0.39test2/docs/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-20 19:00:31
|
Revision: 976 http://svn.sourceforge.net/cegcc/?rev=976&view=rev Author: dannybackx Date: 2007-06-20 12:00:28 -0700 (Wed, 20 Jun 2007) Log Message: ----------- Commit my cegcc exception handler changes so they're visible to others. I will no doubt come back to this, I feel the _eh_handler_ needs to be simplified somewhat. Modified Paths: -------------- trunk/cegcc/src/newlib/ChangeLog.cegcc trunk/cegcc/src/newlib/newlib/libc/sys/wince/startup.c Added Paths: ----------- trunk/cegcc/src/newlib/newlib/libc/sys/wince/startup.h Modified: trunk/cegcc/src/newlib/ChangeLog.cegcc =================================================================== --- trunk/cegcc/src/newlib/ChangeLog.cegcc 2007-06-20 01:30:38 UTC (rev 975) +++ trunk/cegcc/src/newlib/ChangeLog.cegcc 2007-06-20 19:00:28 UTC (rev 976) @@ -1,3 +1,16 @@ +2007-06-20 Danny Backx <dan...@us...> + + * newlib/libc/sys/wince/startup.c (_eh_handler) : Add code to call new + function _Wince_Log instead of printf statements that often go + nowhere. + * newlib/libc/sys/wince/startup.c (_Wince_Log) : New function that can + be configured at runtime to either print to stdout or a file or to pop + up a dialog window. + * newlib/libc/sys/wince/startup.c (_get_registry_debug, + _get_registry_debugflag) : New functions to figure out where the user + wants _Wince_Log to put its output. + * newlib/libc/sys/wince/startup.h : New file to declare _Wince_Log. + 2006-12-29 Danny Backx <dan...@us...> * newlib/libc/sys/wince/startup.c : Call ExitProcess instead of Modified: trunk/cegcc/src/newlib/newlib/libc/sys/wince/startup.c =================================================================== --- trunk/cegcc/src/newlib/newlib/libc/sys/wince/startup.c 2007-06-20 01:30:38 UTC (rev 975) +++ trunk/cegcc/src/newlib/newlib/libc/sys/wince/startup.c 2007-06-20 19:00:28 UTC (rev 976) @@ -13,6 +13,153 @@ #include "sys/io.h" #include "sys/fixpath.h" +/* + * This function will query the registry for the value of an flag. + * Use it to determine whether to use printf to some file, + * or MessageBox in case of trouble. + * + * There's a fixed size buffer in here. + * + * Simplistic version - do this only once. + */ +static wchar_t *_get_registry_debugflag(void) +{ + static int onlyonce = 0; + + LONG r; + const static wchar_t *env = L"cegcc"; + const static wchar_t *wname = L"debug"; + size_t l; + DWORD tp; + HKEY k; + +#define BUF_SIZE 256 + + static wchar_t *wbuffer = NULL; + static DWORD bufsize; + + if (onlyonce) { + return wbuffer; + } + onlyonce++; + + r = RegOpenKeyEx(HKEY_CURRENT_USER, env, 0, 0, &k); + if (r != ERROR_SUCCESS) + return NULL; + + bufsize = BUF_SIZE; + wbuffer = (wchar_t *)malloc(bufsize); + r = RegQueryValueEx(k, wname, NULL, &tp, (LPBYTE)wbuffer, &bufsize); + RegCloseKey(k); + + if (r != ERROR_SUCCESS) { + free(wbuffer); + wbuffer = NULL; + return NULL; + } + + if (tp == REG_SZ) + return wbuffer; + free(wbuffer); + wbuffer = NULL; + return NULL; +} + +static char *_log_filename = NULL; +static FILE *_log_fp = NULL; +static int _fp_needsclose = 0; + +/* + * Note this also relies on not behaving differently once inside a process. + */ +static FILE *_get_registry_debug(void) +{ + wchar_t *r = _get_registry_debugflag(); + int l; + static int inited = 0; + + if (inited) + return _log_fp; + inited = 1; + + if (r == NULL) { /* This was the original behaviour */ + _log_fp = stdout; + return _log_fp; + } + if (wcscmp(r, L"dialog") == 0) { + return NULL; /* Call MessageBoxW() */ + } + if (wcscmp(r, L"stdout") == 0) { /* Again, original behaviour */ + _log_fp = stdout; + return _log_fp; + } + if (wcscmp(r, L"stderr") == 0) { + _log_fp = stderr; + return _log_fp; + } + + l = wcslen(r)+1; + _log_filename = malloc(l); + wcstombs(_log_filename, r, l); + + _log_fp = fopen(_log_filename, "a"); + _fp_needsclose = 1; + + /* Ignore errors here ? Naah, we need a fallback */ + if (_log_fp == 0) { + _log_filename = "/cegcc-errlog.txt"; + _log_fp = fopen(_log_filename, "a"); + _fp_needsclose = 1; + } + + return _log_fp; +} + +/* + * Apparently we need the separate declaration to be able to + * specify the attribute handling. + */ +void _Wince_Log(int onlyprintf, char *title, char *fmt, ...) + __attribute__((format(printf, 3, 4))); + +/* + * Produce logging or exception messages. + * This can be configured via the registry, see _get_registry_debug(). + * + */ +void _Wince_Log(int onlyprintf, char *title, char *fmt, ...) +{ + static char msg[512]; + va_list ap; + FILE *fp; + + va_start(ap, fmt); + vsnprintf(msg, sizeof(msg), fmt, ap); + va_end(ap); + msg[sizeof(msg)] = '\0'; + + fp = _get_registry_debug(); + if (fp) { + fprintf(fp, "%s : %s", title, msg); + if (_fp_needsclose) { + fclose(fp); + fp = 0; + } + } else if (!onlyprintf) { + static wchar_t wmsg[512], wtitle[64]; + + mbstowcs(wmsg, msg, strlen(msg)+1); + mbstowcs(wtitle, title, strlen(title)+1); + + MessageBoxW(0, wmsg, wtitle, MB_OK); + } else { + /* + * For now, silently ignore logging when "dialog" is specified + * and "onlyprintf" is passed. + */ + } +} + void _start_process(wchar_t *exe, wchar_t *cmd) { @@ -38,24 +185,25 @@ const char* str; }; +#define EXCEPTION_MAP_ENTRY(W, U, T) { W, U, T } /* from pocket console */ struct exception_map_t __exception_map[] = { - { STATUS_ACCESS_VIOLATION, SIGSEGV, "Access Violation" }, - { STATUS_ILLEGAL_INSTRUCTION, SIGILL, "Illegal Instruction"}, - { STATUS_PRIVILEGED_INSTRUCTION, SIGILL, "Privileged Instruction" }, - /* { (unsigned long)STATUS_NONCONTINUABLE_EXCEPTION, NOSIG, SIG_DIE }, */ - /* { (unsigned long)STATUS_INVALID_DISPOSITION, NOSIG, SIG_DIE }, */ - { STATUS_INTEGER_DIVIDE_BY_ZERO, SIGFPE, "Integer divide by zero" }, - { STATUS_FLOAT_DENORMAL_OPERAND, SIGFPE, "Float denormal operand" }, - { STATUS_FLOAT_DIVIDE_BY_ZERO, SIGFPE, "Float divide by zero" }, - { STATUS_FLOAT_INEXACT_RESULT, SIGFPE, "Float inexact result" }, - { STATUS_FLOAT_INVALID_OPERATION, SIGFPE, "Float invalid operation" }, - { STATUS_FLOAT_OVERFLOW, SIGFPE, "Float overflow" }, - { STATUS_FLOAT_STACK_CHECK, SIGFPE, "Float stack check" }, - { STATUS_FLOAT_UNDERFLOW, SIGFPE, "Float underflow" }, - /* { (unsigned long)STATUS_INTEGER_DIVIDE_BY_ZERO, NOSIG }, */ - /* { (unsigned long)STATUS_STACK_OVERFLOW, NOSIG } */ + { STATUS_ACCESS_VIOLATION, SIGSEGV, "Access Violation"}, + { STATUS_ILLEGAL_INSTRUCTION, SIGILL, "Illegal Instruction"}, + { STATUS_PRIVILEGED_INSTRUCTION, SIGILL, "Privileged Instruction"}, + /* {(unsigned long)STATUS_NONCONTINUABLE_EXCEPTION, NOSIG, SIG_DIE }, */ + /* {(unsigned long)STATUS_INVALID_DISPOSITION, NOSIG, SIG_DIE }, */ + { STATUS_INTEGER_DIVIDE_BY_ZERO, SIGFPE, "Integer divide by zero"}, + { STATUS_FLOAT_DENORMAL_OPERAND, SIGFPE, "Float denormal operand"}, + { STATUS_FLOAT_DIVIDE_BY_ZERO, SIGFPE, "Float divide by zero"}, + { STATUS_FLOAT_INEXACT_RESULT, SIGFPE, "Float inexact result"}, + { STATUS_FLOAT_INVALID_OPERATION, SIGFPE, "Float invalid operation"}, + { STATUS_FLOAT_OVERFLOW, SIGFPE, "Float overflow"}, + { STATUS_FLOAT_STACK_CHECK, SIGFPE, "Float stack check"}, + { STATUS_FLOAT_UNDERFLOW, SIGFPE, "Float underflow"}, + /* {(unsigned long)STATUS_INTEGER_DIVIDE_BY_ZERO, NOSIG },*/ + /* {(unsigned long)STATUS_STACK_OVERFLOW, NOSIG } */ }; static struct exception_map_t* get_exception_map_for(DWORD xcptnum) @@ -103,36 +251,40 @@ { // ### What is this needed for? static int NestedException=0; - if(NestedException) - { + wchar_t msg[256]; + int unhandled = 0; + FILE *fp = NULL; + DWORD *sp; + + if (NestedException) { printf("nested exception\n"); goto Nest; } NestedException=1; - if (ExceptionRecord->ExceptionCode == EXCEPTION_DATATYPE_MISALIGNMENT) - { + if (ExceptionRecord->ExceptionCode == EXCEPTION_DATATYPE_MISALIGNMENT) { int i; DWORD Cmd; DWORD DataAddr; -#if 0 - printf("Trying to handle EXCEPTION_DATATYPE_MISALIGNMENT Flags:%x Addr:%x " - "SP:%x LR:%x R0:%x R1:%x R2:%x R3:%x R4:%x R5:%x R12:%x FP:%x\n", - ExceptionRecord->ExceptionFlags, - ExceptionRecord->ExceptionAddress, - ContextRecord->Sp, - ContextRecord->Lr, - ContextRecord->R0, - ContextRecord->R1, - ContextRecord->R2, - ContextRecord->R3, - ContextRecord->R4, - ContextRecord->R5, - ContextRecord->R12, - EstablisherFrame - ); -#endif + /* + * Don't put a dialog up on this message, when an application triggers it you may + * have to click away the dialog hundreds of times, sometimes WinCE dies. + */ + _Wince_Log(1, "Error 1", "Trying to handle EXCEPTION_DATATYPE_MISALIGNMENT Flags:%x Addr:%x " + "SP:%x LR:%x R0:%x R1:%x R2:%x R3:%x R4:%x R5:%x R12:%x FP:%x\r\n", + ExceptionRecord->ExceptionFlags, + ExceptionRecord->ExceptionAddress, + ContextRecord->Sp, + ContextRecord->Lr, + ContextRecord->R0, + ContextRecord->R1, + ContextRecord->R2, + ContextRecord->R3, + ContextRecord->R4, + ContextRecord->R5, + ContextRecord->R12, + EstablisherFrame); Cmd=*(DWORD*)(ExceptionRecord->ExceptionAddress); // this may cause other exception @@ -144,7 +296,7 @@ Dst=(Cmd>>12)&0xf; Off=Cmd&0xfff; DataAddr=Regs[Dst]+Off; - fprintf(stderr, "Warning: Emulating unaligned LDR R%d,[R%d+%d] (DataAddr:%d) (Cmd:%x)\n", + _Wince_Log(1, "Error 2", "Warning: Emulating unaligned LDR R%d,[R%d+%d] (DataAddr:%d) (Cmd:%x)\r\n", Src, Dst, Off, DataAddr, Cmd); memcpy(Regs+Dst, (char*)DataAddr, 4); } @@ -156,12 +308,12 @@ Src=(Cmd>>12)&0xf; Off=Cmd&0xfff; DataAddr=Regs[Dst]+Off; - fprintf(stderr, "Warning: Emulating unaligned STR R%d,[R%d+%d] (DataAddr:%d) (Cmd:%x)\n", + _Wince_Log(1, "Error 3", "Warning: Emulating unaligned STR R%d,[R%d+%d] (DataAddr:%d) (Cmd:%x)\r\n", Src, Dst, Off, DataAddr, Cmd); memcpy((char*)DataAddr, Regs+Src, 4); } else { - printf("Unhandled command:%x\n", Cmd); + _Wince_Log(1, "Data type misalignment exception", "Unhandled command:%x\n", Cmd); goto Cont; } @@ -170,27 +322,31 @@ NestedException=0; return ExceptionContinueExecution; Cont: - printf("Unhandled "); + _Wince_Log(1, "Error 4", "Unhandled "); + unhandled++; } Nest: - printf("Exception: Code:%x Flags:%x Addr:%x " - "SP:%x LR:%x R0:%x R1:%x R2:%x R3:%x R4:%x R5:%x R12:%x FP:%x\n", - ExceptionRecord->ExceptionCode, - ExceptionRecord->ExceptionFlags, - ExceptionRecord->ExceptionAddress, - ContextRecord->Sp, - ContextRecord->Lr, - ContextRecord->R0, - ContextRecord->R1, - ContextRecord->R2, - ContextRecord->R3, - ContextRecord->R4, - ContextRecord->R5, - ContextRecord->R12, - EstablisherFrame - ); - - DWORD* sp = (DWORD*)ContextRecord->Sp; +#if 0 + /* + * No message box here, there's a call with textual explanation for the end user below. + */ + _Wince_Log(1, "Error 5", "Exception: Code:%x Flags:%x Addr:%x " + "SP:%x LR:%x R0:%x R1:%x R2:%x R3:%x R4:%x R5:%x R12:%x FP:%x\r\n", + ExceptionRecord->ExceptionCode, + ExceptionRecord->ExceptionFlags, + ExceptionRecord->ExceptionAddress, + ContextRecord->Sp, + ContextRecord->Lr, + ContextRecord->R0, + ContextRecord->R1, + ContextRecord->R2, + ContextRecord->R3, + ContextRecord->R4, + ContextRecord->R5, + ContextRecord->R12, + EstablisherFrame); +#endif + sp = (DWORD*)ContextRecord->Sp; *--sp = ContextRecord->Pc; *--sp = ContextRecord->Lr; *--sp = ContextRecord->Sp; @@ -217,17 +373,26 @@ struct exception_map_t* expt = get_exception_map_for(ExceptionRecord->ExceptionCode); if (!expt) { - printf("Unhandled kernel exception %x\n", ExceptionRecord->ExceptionCode); + _Wince_Log(0, "Unhandled kernel exception", "Exception %x\n", ExceptionRecord->ExceptionCode); exit(-1); } - printf("%s\n", expt->str); + + /* + * Show readable text explaining what went wrong, with a limited amount of detail. + */ + _Wince_Log(0, "WinCE Exception", "%s\r\nCode:%x Flags:%x Addr:%x SP:%x", + expt->str, + ExceptionRecord->ExceptionCode, + ExceptionRecord->ExceptionFlags, + ExceptionRecord->ExceptionAddress, + ContextRecord->Sp); ContextRecord->R0 = expt->signal; /* raise(SIGSEGV); */ __eh_continue(ContextRecord); /* NOT REACHED */ - printf("Signal handler returned!\n"); + _Wince_Log(1, "Error 6", "Signal handler returned!\r\n"); exit(1); } Added: trunk/cegcc/src/newlib/newlib/libc/sys/wince/startup.h =================================================================== --- trunk/cegcc/src/newlib/newlib/libc/sys/wince/startup.h (rev 0) +++ trunk/cegcc/src/newlib/newlib/libc/sys/wince/startup.h 2007-06-20 19:00:28 UTC (rev 976) @@ -0,0 +1,2 @@ +void _Wince_Log(int onlyprintf, char *title, char *fmt, ...) + __attribute__((format(printf, 3, 4))); Property changes on: trunk/cegcc/src/newlib/newlib/libc/sys/wince/startup.h ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-06-20 01:30:42
|
Revision: 975 http://svn.sourceforge.net/cegcc/?rev=975&view=rev Author: pedroalves Date: 2007-06-19 18:30:38 -0700 (Tue, 19 Jun 2007) Log Message: ----------- * rshd.c (init_client_data): Init refcount as 0. (rsh_userok): Don't compile. (rexec_userok): Delete. (create_child): Handle program arguments. Modified Paths: -------------- trunk/cegcc/tools/rshd/ChangeLog trunk/cegcc/tools/rshd/rshd.c Modified: trunk/cegcc/tools/rshd/ChangeLog =================================================================== --- trunk/cegcc/tools/rshd/ChangeLog 2007-06-19 22:21:16 UTC (rev 974) +++ trunk/cegcc/tools/rshd/ChangeLog 2007-06-20 01:30:38 UTC (rev 975) @@ -1,3 +1,10 @@ +2007-06-20 Pedro Alves <ped...@po...> + + * rshd.c (init_client_data): Init refcount as 0. + (rsh_userok): Don't compile. + (rexec_userok): Delete. + (create_child): Handle program arguments. + 2007-06-13 Danny Backx <dan...@us...> * rshd.c : Remove #include <pkfuncs.h>. Modified: trunk/cegcc/tools/rshd/rshd.c =================================================================== --- trunk/cegcc/tools/rshd/rshd.c 2007-06-19 22:21:16 UTC (rev 974) +++ trunk/cegcc/tools/rshd/rshd.c 2007-06-20 01:30:38 UTC (rev 975) @@ -176,6 +176,8 @@ static int clientid = 0; int i; + data->refcount = 0; + memset (&data->sin, 0, sizeof (data->sin)); data->clientid = ++clientid; @@ -190,6 +192,7 @@ data->stop = FALSE; } +#if 0 /* check if hostname is in users .rhost file */ static int rsh_userok (const char *hostname, const char *user) @@ -226,23 +229,7 @@ (void)user; return 1; } - -int -rexec_userok (const char *user, const char *pass) -{ -#if 0 - struct passwd *pw; - char s[256] = ""; - if ((pw = getpwnam(user)) == NULL) - return 0; - - if (strncmp(pw->pw_passwd, pass, 13) != 0) - return 0; #endif - (void)user; - (void)pass; - return 1; -} static DWORD WINAPI stdin_thread (void *arg) @@ -441,14 +428,21 @@ } argslen = 0; - args = ""; + args = program; + /* TODO: program paths with embedded spaces? */ + args = strchr (args, ' '); + if (args != NULL) + *args++ = '\0'; + else + args = ""; + argslen = strlen (args); + wargs = alloca ((argslen + 1) * sizeof (wchar_t)); + mbstowcs (wargs, args, argslen + 1); + /* PROGRAM is now free from args. */ to_back_slashes (program); - wargs = alloca ((argslen + 1) * sizeof (wchar_t)); - mbstowcs (wargs, args, argslen); wprogram = alloca ((strlen (program) + 1) * sizeof (wchar_t)); mbstowcs (wprogram, program, strlen (program) + 1); - /* Do the PipeLib/WinCE dup dance. */ for (i = 0; i < 3; i++) @@ -480,7 +474,7 @@ if (!ret) { DWORD err = GetLastError (); - fprintf (stderr, "Error creating process \"%s%s\", (error %d): %s\n", + fprintf (stderr, "Error creating process \"%s %s\", (error %d): %s\n", program, args, (int) err, strwinerror (err)); for (i = 0; i < 3; i++) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-19 22:21:17
|
Revision: 974 http://svn.sourceforge.net/cegcc/?rev=974&view=rev Author: dannybackx Date: 2007-06-19 15:21:16 -0700 (Tue, 19 Jun 2007) Log Message: ----------- Auch. Think, then do. The document is in another directory. Point to it correctly. Modified Paths: -------------- trunk/cegcc/website/index.html Modified: trunk/cegcc/website/index.html =================================================================== --- trunk/cegcc/website/index.html 2007-06-19 22:19:57 UTC (rev 973) +++ trunk/cegcc/website/index.html 2007-06-19 22:21:16 UTC (rev 974) @@ -92,7 +92,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> - <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> + <LI><A HREF="docs/reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-19 22:19:58
|
Revision: 973 http://svn.sourceforge.net/cegcc/?rev=973&view=rev Author: dannybackx Date: 2007-06-19 15:19:57 -0700 (Tue, 19 Jun 2007) Log Message: ----------- Forgot to add the link to the "reporting" document here. Modified Paths: -------------- trunk/cegcc/website/index.html Modified: trunk/cegcc/website/index.html =================================================================== --- trunk/cegcc/website/index.html 2007-06-19 22:08:43 UTC (rev 972) +++ trunk/cegcc/website/index.html 2007-06-19 22:19:57 UTC (rev 973) @@ -92,6 +92,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-19 22:08:44
|
Revision: 972 http://svn.sourceforge.net/cegcc/?rev=972&view=rev Author: dannybackx Date: 2007-06-19 15:08:43 -0700 (Tue, 19 Jun 2007) Log Message: ----------- Remove a debug statement Modified Paths: -------------- trunk/cegcc/scripts/make_release.sh Modified: trunk/cegcc/scripts/make_release.sh =================================================================== --- trunk/cegcc/scripts/make_release.sh 2007-06-19 22:07:46 UTC (rev 971) +++ trunk/cegcc/scripts/make_release.sh 2007-06-19 22:08:43 UTC (rev 972) @@ -396,7 +396,6 @@ echo "Skip level 70 (Build binary tar images)" else echo "Level 70 (Build binary tar images)" - set -x if [ "x$LINUXDISTRO" = "x" ]; then PREFIX="" else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-19 22:07:47
|
Revision: 971 http://svn.sourceforge.net/cegcc/?rev=971&view=rev Author: dannybackx Date: 2007-06-19 15:07:46 -0700 (Tue, 19 Jun 2007) Log Message: ----------- Fix the rename bug. Modified Paths: -------------- trunk/cegcc/scripts/make_release.sh Modified: trunk/cegcc/scripts/make_release.sh =================================================================== --- trunk/cegcc/scripts/make_release.sh 2007-06-19 16:11:51 UTC (rev 970) +++ trunk/cegcc/scripts/make_release.sh 2007-06-19 22:07:46 UTC (rev 971) @@ -370,14 +370,14 @@ else PREFIX="$LINUXDISTRO-" fi - echo "put $LIST $PREFIX$LIST" >>$FTPFILE + echo "put $LIST -o $PREFIX$LIST" >>$FTPFILE LIST=`ls cegcc-mingw32ce-$VERSION-*.i586.rpm` COUNT=`echo $LIST | wc -w` if [ $COUNT -ne 1 ]; then echo "Unexpected number of RPM files, please clean up before continuing." exit 1 fi - echo "put $LIST $PREFIX$LIST" >>$FTPFILE + echo "put $LIST -o $PREFIX$LIST" >>$FTPFILE echo "bye" >>$FTPFILE lftp -f $FTPFILE # This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-19 16:11:54
|
Revision: 970 http://svn.sourceforge.net/cegcc/?rev=970&view=rev Author: dannybackx Date: 2007-06-19 09:11:51 -0700 (Tue, 19 Jun 2007) Log Message: ----------- Specific file versions for CeGCC 0.50 Modified Paths: -------------- tags/cegcc-0.50/README Modified: tags/cegcc-0.50/README =================================================================== --- tags/cegcc-0.50/README 2007-06-19 15:57:44 UTC (rev 969) +++ tags/cegcc-0.50/README 2007-06-19 16:11:51 UTC (rev 970) @@ -1,6 +1,6 @@ CeGCC - cross-development tools for Windows CE (PocketPC). -This is the SVN version of CeGCC. +This is version 0.50 of CeGCC. The CeGCC project aims to provide a consistent and working set of development tools that generate code for Windows CE devices such as PDA's and smart phones. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-19 15:57:45
|
Revision: 969 http://svn.sourceforge.net/cegcc/?rev=969&view=rev Author: dannybackx Date: 2007-06-19 08:57:44 -0700 (Tue, 19 Jun 2007) Log Message: ----------- Create tag 0.50 by make_release.sh Added Paths: ----------- tags/cegcc-0.50/ Copied: tags/cegcc-0.50 (from rev 968, trunk/cegcc) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-18 18:59:40
|
Revision: 968 http://svn.sourceforge.net/cegcc/?rev=968&view=rev Author: dannybackx Date: 2007-06-18 11:59:38 -0700 (Mon, 18 Jun 2007) Log Message: ----------- Add a page that describes which info to send along when asking us questions. Modified Paths: -------------- trunk/cegcc/docs/build-toolchain.html trunk/cegcc/docs/choosing.html trunk/cegcc/docs/debugging.html trunk/cegcc/docs/details.html trunk/cegcc/docs/dll.html trunk/cegcc/docs/index.html trunk/cegcc/docs/install-linux.html trunk/cegcc/docs/layer.html trunk/cegcc/docs/license.html trunk/cegcc/docs/profile.html trunk/cegcc/docs/structure.html trunk/cegcc/docs/using.html trunk/cegcc/docs/what.html Added Paths: ----------- trunk/cegcc/docs/reporting.html Modified: trunk/cegcc/docs/build-toolchain.html =================================================================== --- trunk/cegcc/docs/build-toolchain.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/build-toolchain.html 2007-06-18 18:59:38 UTC (rev 968) @@ -279,6 +279,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/choosing.html =================================================================== --- trunk/cegcc/docs/choosing.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/choosing.html 2007-06-18 18:59:38 UTC (rev 968) @@ -76,6 +76,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/debugging.html =================================================================== --- trunk/cegcc/docs/debugging.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/debugging.html 2007-06-18 18:59:38 UTC (rev 968) @@ -331,6 +331,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/details.html =================================================================== --- trunk/cegcc/docs/details.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/details.html 2007-06-18 18:59:38 UTC (rev 968) @@ -237,6 +237,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/dll.html =================================================================== --- trunk/cegcc/docs/dll.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/dll.html 2007-06-18 18:59:38 UTC (rev 968) @@ -58,6 +58,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/index.html =================================================================== --- trunk/cegcc/docs/index.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/index.html 2007-06-18 18:59:38 UTC (rev 968) @@ -33,6 +33,7 @@ <li><A HREF="profile.html#start and terminate">Startup and termination of WinCE programs</A></li> </ul> <LI><A HREF="license.html">License</A></LI> +<LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </UL> <P> <h2>Required software</h2> @@ -56,6 +57,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/install-linux.html =================================================================== --- trunk/cegcc/docs/install-linux.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/install-linux.html 2007-06-18 18:59:38 UTC (rev 968) @@ -160,6 +160,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/layer.html =================================================================== --- trunk/cegcc/docs/layer.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/layer.html 2007-06-18 18:59:38 UTC (rev 968) @@ -59,6 +59,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/license.html =================================================================== --- trunk/cegcc/docs/license.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/license.html 2007-06-18 18:59:38 UTC (rev 968) @@ -71,6 +71,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/profile.html =================================================================== --- trunk/cegcc/docs/profile.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/profile.html 2007-06-18 18:59:38 UTC (rev 968) @@ -506,6 +506,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Added: trunk/cegcc/docs/reporting.html =================================================================== --- trunk/cegcc/docs/reporting.html (rev 0) +++ trunk/cegcc/docs/reporting.html 2007-06-18 18:59:38 UTC (rev 968) @@ -0,0 +1,48 @@ +<HTML> +<HEAD> +<TITLE>Information to including when asking help or when reporting problems</TITLE> +<img src="../images/banner1.png" alt="CeGCC cross compiler for PocketPC"> +</HEAD> +<BODY> +<H1>Information to including when asking help or when reporting problems</H1> +<P> +When you ask questions on +<a href="mailto:ceg...@li...">the mailing list</a>, +or when you report a problem (either on the mailing list or via +<a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514">the bug tracker</a>, +you can help us out by giving as much hard information as you can. +<P> +Tell us which version of our software you're using : +<ul> + <li> installed from source (which version? a specific distribution, or from SVN) + <li> installed from a binary distribution ? Which one ? +</ul> +<P> +But also whether you're using <i>arm-wince-mingw32ce</i> or <i>arm-wince-cegcc</i> tools. +<P> +Which platform are you using to develop ? (Linux, Cygwin, ..) +<P> +What is the nature of your problem ? +<P> +Can you send us a small source that demonstrates the problem ? +</BODY> +<table border=0 cellspacing=10 width="100%"> <tr> + <td align=left valign=top bgcolor="#ededed" width="50%"> + <h2 align=center>Information</h2> + <ul> + <li> <a href="http://cegcc.sourceforge.net"> CeGCC Home Page on SourceForge </a> + <li> <a href="index.html"> CeGCC Documentation </a> + <li> <a href="http://sourceforge.net/projects/cegcc"> Project page on SourceForge </a> + <li> <a href="http://cegcc.wiki.sourceforge.net"> CeGCC wiki </a> + </ul> + </td> + <td align=left valign=top bgcolor="#ededed" width="50%"> + <h2 align=center>Support</h2> + <ul> + <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. + <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> + </ul> + </td> +</tr></table> +</HTML> Property changes on: trunk/cegcc/docs/reporting.html ___________________________________________________________________ Name: svn:eol-style + native Modified: trunk/cegcc/docs/structure.html =================================================================== --- trunk/cegcc/docs/structure.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/structure.html 2007-06-18 18:59:38 UTC (rev 968) @@ -102,6 +102,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/using.html =================================================================== --- trunk/cegcc/docs/using.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/using.html 2007-06-18 18:59:38 UTC (rev 968) @@ -349,6 +349,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> Modified: trunk/cegcc/docs/what.html =================================================================== --- trunk/cegcc/docs/what.html 2007-06-17 18:14:24 UTC (rev 967) +++ trunk/cegcc/docs/what.html 2007-06-18 18:59:38 UTC (rev 968) @@ -94,6 +94,7 @@ <ul> <li> <a href="mailto:ceg...@li...">Questions ? Use the mailing list</a>. <li> <a href="http://sourceforge.net/tracker/?group_id=173455&atid=865514"> CeGCC Bug tracker </a> + <LI><A HREF="reporting.html">Information to including when asking help or when reporting problems</A></LI> </ul> </td> </tr></table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-06-17 18:15:08
|
Revision: 967 http://svn.sourceforge.net/cegcc/?rev=967&view=rev Author: pedroalves Date: 2007-06-17 11:14:24 -0700 (Sun, 17 Jun 2007) Log Message: ----------- Fix typo. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-06-17 13:28:47 UTC (rev 966) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-06-17 18:14:24 UTC (rev 967) @@ -1,6 +1,6 @@ 2007-06-16 Pedro Alves <ped...@po...> - * mingwex/wince/stat.c: Fix whitespacing and formatting throught. + * mingwex/wince/stat.c: Fix whitespacing and formatting throughout. (__stat_by_file_info): Don't set _S_IFREG on directories. 2007-06-15 Pedro Alves <ped...@po...> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-17 13:28:53
|
Revision: 966 http://svn.sourceforge.net/cegcc/?rev=966&view=rev Author: dannybackx Date: 2007-06-17 06:28:47 -0700 (Sun, 17 Jun 2007) Log Message: ----------- I'll try this version on 0.50 tomorrow. Modified Paths: -------------- trunk/cegcc/scripts/make_release.sh Modified: trunk/cegcc/scripts/make_release.sh =================================================================== --- trunk/cegcc/scripts/make_release.sh 2007-06-17 08:12:25 UTC (rev 965) +++ trunk/cegcc/scripts/make_release.sh 2007-06-17 13:28:47 UTC (rev 966) @@ -349,7 +349,38 @@ then echo "Skip level 60 (FTP RPM)" else + echo "Level 60 (FTP RPM)" # + cd /usr/src/rpm/RPMS/i586 + FTPFILE=/tmp/lftp-$$ + echo "open upload.sf.net -u ftp,cegcc" >$FTPFILE + echo "lcd /usr/src/rpm/RPMS/i586" >>$FTPFILE + echo "cd /incoming" >>$FTPFILE + # + # Cope with potentially different file names generated by rpmbuild. + # + LIST=`ls cegcc-cegcc-$VERSION-*.i586.rpm` + COUNT=`echo $LIST | wc -w` + if [ $COUNT -ne 1 ]; then + echo "Unexpected number of RPM files, please clean up before continuing." + exit 1 + fi + if [ "x$LINUXDISTRO" = "x" ]; then + PREFIX="" + else + PREFIX="$LINUXDISTRO-" + fi + echo "put $LIST $PREFIX$LIST" >>$FTPFILE + LIST=`ls cegcc-mingw32ce-$VERSION-*.i586.rpm` + COUNT=`echo $LIST | wc -w` + if [ $COUNT -ne 1 ]; then + echo "Unexpected number of RPM files, please clean up before continuing." + exit 1 + fi + echo "put $LIST $PREFIX$LIST" >>$FTPFILE + echo "bye" >>$FTPFILE + lftp -f $FTPFILE + # # End level 60 (FTP RPM) # RESTARTED=70 @@ -364,6 +395,21 @@ then echo "Skip level 70 (Build binary tar images)" else + echo "Level 70 (Build binary tar images)" + set -x + if [ "x$LINUXDISTRO" = "x" ]; then + PREFIX="" + else + PREFIX="$LINUXDISTRO-" + fi + OK="no" + tar cfz /tmp/${PREFIX}cegcc-cegcc-$VERSION.tar.gz /opt/cegcc && \ + tar cfz /tmp/${PREFIX}cegcc-mingw32ce-$VERSION.tar.gz /opt/mingw32ce && \ + OK="yes" + if [ $OK = "no" ]; then + echo "Creating binary tar failed, exiting ..." + exit 1 + fi # # End level 70 (Build binary tar images) # @@ -377,9 +423,35 @@ # if test $RESTARTED -ge 81 then - echo "Skip level 80 (FTP binary tar images)" + echo "Skip level 80 (FTP tar images)" else + echo "Level 80 (FTP tar images)" + FTPFILE=/tmp/lftp-$$ + echo "open upload.sf.net -u ftp,cegcc" >$FTPFILE + echo "lcd /tmp" >>$FTPFILE + echo "cd /incoming" >>$FTPFILE # + if [ "x$LINUXDISTRO" = "x" ]; then + PREFIX="" + else + PREFIX="$LINUXDISTRO-" + fi + echo "put ${PREFIX}cegcc-cegcc-$VERSION.tar.gz" >>$FTPFILE + echo "put ${PREFIX}cegcc-mingw32ce-$VERSION.tar.gz" >>$FTPFILE + echo "lcd /usr/src/rpm/SOURCES" >>$FTPFILE +# +# These are a bit big, commenting out. +# +# echo "put cegcc-cegcc-src-$VERSION.tar.gz" >>$FTPFILE +# echo "put cegcc-mingw32ce-src-$VERSION.tar.gz" >>$FTPFILE + echo "bye" >>$FTPFILE + OK=no + lftp -f $FTPFILE && OK=yes + if [ $OK = "no" ]; then + echo "FTP binary tar failed, exiting..." + exit 1 + fi + # # End level 80 (FTP binary tar images) # RESTARTED=90 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-17 08:12:30
|
Revision: 965 http://svn.sourceforge.net/cegcc/?rev=965&view=rev Author: dannybackx Date: 2007-06-17 01:12:25 -0700 (Sun, 17 Jun 2007) Log Message: ----------- Another silly error in the SPEC file. Modified Paths: -------------- trunk/cegcc/scripts/linux/cegcc.spec.in Modified: trunk/cegcc/scripts/linux/cegcc.spec.in =================================================================== --- trunk/cegcc/scripts/linux/cegcc.spec.in 2007-06-17 07:02:01 UTC (rev 964) +++ trunk/cegcc/scripts/linux/cegcc.spec.in 2007-06-17 08:12:25 UTC (rev 965) @@ -1,5 +1,5 @@ Summary: CeGCC offers cross-development to create Windows CE apps for ARM processors -Name: cegcc +Name: cegcc-cegcc %define version VerSION Version: VerSION Release: 1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-17 07:02:03
|
Revision: 964 http://svn.sourceforge.net/cegcc/?rev=964&view=rev Author: dannybackx Date: 2007-06-17 00:02:01 -0700 (Sun, 17 Jun 2007) Log Message: ----------- When created from make_release.sh, rpm-create-source.sh is not executable, so only check whether it's readable. Modified Paths: -------------- trunk/cegcc/scripts/linux/rpm-create-source.sh.in Modified: trunk/cegcc/scripts/linux/rpm-create-source.sh.in =================================================================== --- trunk/cegcc/scripts/linux/rpm-create-source.sh.in 2007-06-16 19:52:10 UTC (rev 963) +++ trunk/cegcc/scripts/linux/rpm-create-source.sh.in 2007-06-17 07:02:01 UTC (rev 964) @@ -1,5 +1,5 @@ #!/bin/sh -if [ -x ./rpm-create-source.sh ]; then +if [ -r ./rpm-create-source.sh ]; then cd ../.. TOP_SRCDIR=`pwd` else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ped...@us...> - 2007-06-16 19:52:12
|
Revision: 963 http://svn.sourceforge.net/cegcc/?rev=963&view=rev Author: pedroalves Date: 2007-06-16 12:52:10 -0700 (Sat, 16 Jun 2007) Log Message: ----------- * mingwex/wince/stat.c: Fix whitespacing and formatting throught. (__stat_by_file_info): Don't set _S_IFREG on directories. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wince/stat.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-06-16 19:18:29 UTC (rev 962) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-06-16 19:52:10 UTC (rev 963) @@ -1,3 +1,8 @@ +2007-06-16 Pedro Alves <ped...@po...> + + * mingwex/wince/stat.c: Fix whitespacing and formatting throught. + (__stat_by_file_info): Don't set _S_IFREG on directories. + 2007-06-15 Pedro Alves <ped...@po...> * include/stdlib.h [__COREDLL__]: Include stdio.h. Modified: trunk/cegcc/src/mingw/mingwex/wince/stat.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/stat.c 2007-06-16 19:18:29 UTC (rev 962) +++ trunk/cegcc/src/mingw/mingwex/wince/stat.c 2007-06-16 19:52:10 UTC (rev 963) @@ -6,7 +6,7 @@ * No warranty is given; refer to the file DISCLAIMER within the package. * * Written by Pedro Alves <ped...@po...> 10 Feb 2007 - * + * */ #include <windows.h> @@ -42,7 +42,7 @@ } while (0) static int -__stat_by_file_info (struct stat_file_info_t *fi, struct stat* st, int exec) +__stat_by_file_info (struct stat_file_info_t *fi, struct stat *st, int exec) { int permission = _S_IREAD; @@ -52,7 +52,7 @@ st->st_mode = _S_IFREG; if((fi->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0) - st->st_mode |= _S_IFDIR | _S_IEXEC; + st->st_mode = _S_IFDIR | _S_IEXEC; else if (exec) permission |= _S_IEXEC; @@ -62,21 +62,21 @@ st->st_mode |= permission | (permission >> 3) | (permission >> 6); st->st_nlink = 1; /* always 1? */ - st->st_rdev = 1; /* Where to get drive info? */ + st->st_rdev = 1; /* Where to get drive info? */ st->st_ino = 0; /* always 0 on Windows */ st->st_mtime = __FILETIME_to_time_t (&fi->ftLastWriteTime); st->st_ctime = __FILETIME_to_time_t (&fi->ftCreationTime); st->st_atime = __FILETIME_to_time_t (&fi->ftLastAccessTime); - /* Looks like the code below is never triggered. + /* Looks like the code below is never triggered. Windows CE always only keeps the LastWriteTime, and copies it to the CreationTime and LastAccessTime fields. */ - if (st->st_ctime == 0) + if (st->st_ctime == 0) st->st_ctime = st->st_mtime; - if (st->st_atime == 0) + if (st->st_atime == 0) { - /* On XP, at least, the st_atime is always set to the same + /* On XP, at least, the st_atime is always set to the same as the st_mtime, except the hour/min/sec == 00:00:00. */ SYSTEMTIME s; FILETIME f = fi->ftLastWriteTime; @@ -90,18 +90,18 @@ return 0; } -int +int fstat (int fd, struct stat *st) { BY_HANDLE_FILE_INFORMATION fi; struct stat_file_info_t sfi; - + GetFileInformationByHandle ((HANDLE)fd, &fi); TO_STAT_FILE_INFO (&sfi, &fi); return __stat_by_file_info (&sfi, st, 0); } -int +int _stat (const char *path, struct _stat *st) { WIN32_FIND_DATAW fd; @@ -125,14 +125,14 @@ TO_STAT_FILE_INFO (&sfi, &fd); len = strlen (path); - exec = (len >= 4 + exec = (len >= 4 && strcasecmp (path + len - 4, ".exe") == 0); ret = __stat_by_file_info (&sfi, (struct stat*)st, exec); FindClose (h); return ret; } -int +int stat (const char *path, struct stat *st) { return _stat (path, (struct _stat *)st); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 19:18:38
|
Revision: 962 http://svn.sourceforge.net/cegcc/?rev=962&view=rev Author: dannybackx Date: 2007-06-16 12:18:29 -0700 (Sat, 16 Jun 2007) Log Message: ----------- Specific file versions for CeGCC 0.39test2 Modified Paths: -------------- tags/cegcc-0.39test2/README Modified: tags/cegcc-0.39test2/README =================================================================== --- tags/cegcc-0.39test2/README 2007-06-16 19:01:22 UTC (rev 961) +++ tags/cegcc-0.39test2/README 2007-06-16 19:18:29 UTC (rev 962) @@ -1,6 +1,6 @@ CeGCC - cross-development tools for Windows CE (PocketPC). -This is the SVN version of CeGCC. +This is version 0.39test2 of CeGCC. The CeGCC project aims to provide a consistent and working set of development tools that generate code for Windows CE devices such as PDA's and smart phones. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 19:01:23
|
Revision: 961 http://svn.sourceforge.net/cegcc/?rev=961&view=rev Author: dannybackx Date: 2007-06-16 12:01:22 -0700 (Sat, 16 Jun 2007) Log Message: ----------- Obvious errors Modified Paths: -------------- trunk/cegcc/scripts/linux/cegcc.spec.in trunk/cegcc/scripts/make_release.sh Modified: trunk/cegcc/scripts/linux/cegcc.spec.in =================================================================== --- trunk/cegcc/scripts/linux/cegcc.spec.in 2007-06-16 19:00:16 UTC (rev 960) +++ trunk/cegcc/scripts/linux/cegcc.spec.in 2007-06-16 19:01:22 UTC (rev 961) @@ -8,7 +8,7 @@ Group: Development/Tools Prefix: /opt/cegcc # Source: http://sourceforge.net/project/showfiles.php?group_id=173455 -Source: /tmp/cegcc-src-%{version}.tar.gz +Source: /tmp/cegcc-cegcc-src-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-buildroot %description Modified: trunk/cegcc/scripts/make_release.sh =================================================================== --- trunk/cegcc/scripts/make_release.sh 2007-06-16 19:00:16 UTC (rev 960) +++ trunk/cegcc/scripts/make_release.sh 2007-06-16 19:01:22 UTC (rev 961) @@ -75,7 +75,7 @@ if [ -r ./NEWS -a -r scripts/linux/cegcc.spec -a -r scripts/linux/rpm-create-source.sh ]; then TOPDIR=. else - if [ -f ../NEWS -a -r linux/cegcc.spec -a -r linux/rpm-create-source.sh ]; then + if [ -f ../NEWS -a -r linux/cegcc.spec.in -a -r linux/rpm-create-source.sh.in ]; then TOPDIR=.. else echo "Cannot find CeGCC source directory, exiting" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 19:00:21
|
Revision: 960 http://svn.sourceforge.net/cegcc/?rev=960&view=rev Author: dannybackx Date: 2007-06-16 12:00:16 -0700 (Sat, 16 Jun 2007) Log Message: ----------- Create tag 0.39test2 by make_release.sh Added Paths: ----------- tags/cegcc-0.39test2/ Copied: tags/cegcc-0.39test2 (from rev 959, trunk/cegcc) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 18:52:52
|
Revision: 959 http://svn.sourceforge.net/cegcc/?rev=959&view=rev Author: dannybackx Date: 2007-06-16 11:52:51 -0700 (Sat, 16 Jun 2007) Log Message: ----------- (Re-)Create these in versions that the make_release script can eat and modify Added Paths: ----------- trunk/cegcc/scripts/linux/cegcc.spec.in trunk/cegcc/scripts/linux/mingw32ce.spec.in trunk/cegcc/scripts/linux/rpm-create-source.sh.in Added: trunk/cegcc/scripts/linux/cegcc.spec.in =================================================================== --- trunk/cegcc/scripts/linux/cegcc.spec.in (rev 0) +++ trunk/cegcc/scripts/linux/cegcc.spec.in 2007-06-16 18:52:51 UTC (rev 959) @@ -0,0 +1,75 @@ +Summary: CeGCC offers cross-development to create Windows CE apps for ARM processors +Name: cegcc +%define version VerSION +Version: VerSION +Release: 1 +License: open +Packager: Danny Backx <dan...@us...> +Group: Development/Tools +Prefix: /opt/cegcc +# Source: http://sourceforge.net/project/showfiles.php?group_id=173455 +Source: /tmp/cegcc-src-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-buildroot + +%description +CeGCC + +%prep +%setup -q +# %setup -n cegcc-VerSION + +%build +rm -rf $RPM_BUILD_ROOT +export PREFIX=/opt/cegcc +cd src || exit 1 +# sh build-cegcc.sh . $RPM_BUILD_ROOT $PREFIX all || exit 1 +sh build-cegcc.sh all || exit 1 + +%install +cd / +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT +tar cf - opt/cegcc | (cd $RPM_BUILD_ROOT; tar xf -) + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +/opt/cegcc +#/opt/cegcc/arm-wince-cegcc +#%attr(755, root, root) /opt/cegcc/bin +#/opt/cegcc/include +#/opt/cegcc/lib +#/opt/cegcc/libexec +#/opt/cegcc/share +#/opt/cegcc/COPYING +#/opt/cegcc/COPYING.LIB +#/opt/cegcc/NEWS +#/opt/cegcc/README + +%changelog +* Sat Dec 31 2006 Danny Backx <dan...@us...> +- Strip out mingw32ce. + +* Sat Dec 30 2006 Danny Backx <dan...@us...> +- Adapt to Pedro's build scripts and /opt/cegcc and /opt/mingw32ce . + +* Wed Nov 1 2006 Danny Backx <dan...@us...> +- Add COPYING.LIB +- Increase level to produce a 0.11 version next time. + +* Wed Oct 11 2006 Danny Backx <dan...@us...> +- Add a couple of text files. + +* Sat Oct 7 2006 Danny Backx <dan...@us...> +- Change to implement arm-wince-cegcc and arm-wince-mingw32ce targets. + +* Sun Sep 17 2006 Danny Backx <dan...@us...> +- Add documentation files. + +* Thu Sep 14 2006 Danny Backx <dan...@us...> +- Fix the path in install so we don't need to have cegcc installed to be + able to run rpmbuild. + +* Sun Sep 3 2006 Danny Backx <dan...@us...> +- initial version of the spec file. Property changes on: trunk/cegcc/scripts/linux/cegcc.spec.in ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/scripts/linux/mingw32ce.spec.in =================================================================== --- trunk/cegcc/scripts/linux/mingw32ce.spec.in (rev 0) +++ trunk/cegcc/scripts/linux/mingw32ce.spec.in 2007-06-16 18:52:51 UTC (rev 959) @@ -0,0 +1,78 @@ +Summary: CeGCC offers cross-development to create Windows CE apps for ARM processors +Name: cegcc-mingw32ce +%define version VerSION +Version: VerSION +Release: 1 +License: open +Packager: Danny Backx <dan...@us...> +Group: Development/Tools +Prefix: /opt/mingw32ce +# Source: http://sourceforge.net/project/showfiles.php?group_id=173455 +Source: /tmp/cegcc-mingw32ce-src-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-buildroot + +%description +CeGCC + +%prep +%setup -q +# %setup -n cegcc-minge32ce-VerSION + +%build +rm -rf $RPM_BUILD_ROOT +export PREFIX=/opt/mingw32ce +cd src || exit 1 +# sh build-cegcc.sh . $RPM_BUILD_ROOT $PREFIX all || exit 1 +sh build-mingw32ce.sh all || exit 1 + +%install +cd / +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT +tar cf - opt/mingw32ce | (cd $RPM_BUILD_ROOT; tar xf -) + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +/opt/mingw32ce +#/opt/cegcc/arm-wince-cegcc +#%attr(755, root, root) /opt/cegcc/bin +#/opt/cegcc/include +#/opt/cegcc/lib +#/opt/cegcc/libexec +#/opt/cegcc/share +#/opt/cegcc/COPYING +#/opt/cegcc/COPYING.LIB +#/opt/cegcc/NEWS +#/opt/cegcc/README + +%changelog +* Sat Jan 20 2007 Danny Backx <dan...@us...> +- Copy cegcc.spec into mingw32ce.spec, change the stuff that's required. + +* Sat Dec 31 2006 Danny Backx <dan...@us...> +- Strip out mingw32ce. + +* Sat Dec 30 2006 Danny Backx <dan...@us...> +- Adapt to Pedro's build scripts and /opt/cegcc and /opt/mingw32ce . + +* Wed Nov 1 2006 Danny Backx <dan...@us...> +- Add COPYING.LIB +- Increase level to produce a 0.11 version next time. + +* Wed Oct 11 2006 Danny Backx <dan...@us...> +- Add a couple of text files. + +* Sat Oct 7 2006 Danny Backx <dan...@us...> +- Change to implement arm-wince-cegcc and arm-wince-mingw32ce targets. + +* Sun Sep 17 2006 Danny Backx <dan...@us...> +- Add documentation files. + +* Thu Sep 14 2006 Danny Backx <dan...@us...> +- Fix the path in install so we don't need to have cegcc installed to be + able to run rpmbuild. + +* Sun Sep 3 2006 Danny Backx <dan...@us...> +- initial version of the spec file. Property changes on: trunk/cegcc/scripts/linux/mingw32ce.spec.in ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/cegcc/scripts/linux/rpm-create-source.sh.in =================================================================== --- trunk/cegcc/scripts/linux/rpm-create-source.sh.in (rev 0) +++ trunk/cegcc/scripts/linux/rpm-create-source.sh.in 2007-06-16 18:52:51 UTC (rev 959) @@ -0,0 +1,77 @@ +#!/bin/sh +if [ -x ./rpm-create-source.sh ]; then + cd ../.. + TOP_SRCDIR=`pwd` +else + TOP_SRCDIR=`pwd` +fi +# +export TOP_SRCDIR +# +# The name of this release +# +CEGCC_RELEASE=VerSION +export CEGCC_RELEASE +# +# Don't take unnecessary stuff in the source file. +# +echo '*/.svn*' >/tmp/exclude-$$ +echo '/*.cvs*' >>/tmp/exclude-$$ +echo '*/CVS' >>/tmp/exclude-$$ +echo '*/CVS/*' >>/tmp/exclude-$$ +echo 'cegcc-cegcc-'$CEGCC_RELEASE'/src/build-cegcc' >>/tmp/exclude-$$ +echo 'cegcc-cegcc-'$CEGCC_RELEASE'/src/build-cegcc/*' >>/tmp/exclude-$$ +echo 'cegcc-cegcc-'$CEGCC_RELEASE'/src/build-mingw32ce' >>/tmp/exclude-$$ +echo 'cegcc-cegcc-'$CEGCC_RELEASE'/src/build-mingw32ce/*' >>/tmp/exclude-$$ +echo 'cegcc-mingw32ce-'$CEGCC_RELEASE'/src/build-cegcc' >>/tmp/exclude-$$ +echo 'cegcc-mingw32ce-'$CEGCC_RELEASE'/src/build-cegcc/*' >>/tmp/exclude-$$ +echo 'cegcc-mingw32ce-'$CEGCC_RELEASE'/src/build-mingw32ce' >>/tmp/exclude-$$ +echo 'cegcc-mingw32ce-'$CEGCC_RELEASE'/src/build-mingw32ce/*' >>/tmp/exclude-$$ +echo '*~' >>/tmp/exclude-$$ +# +cd $TOP_SRCDIR +ln -s . cegcc-cegcc-$CEGCC_RELEASE +tar --exclude-from=/tmp/exclude-$$ \ + -cz -f /usr/src/rpm/SOURCES/cegcc-cegcc-src-$CEGCC_RELEASE.tar.gz \ + cegcc-cegcc-$CEGCC_RELEASE/NEWS \ + cegcc-cegcc-$CEGCC_RELEASE/README \ + cegcc-cegcc-$CEGCC_RELEASE/scripts/linux/cegcc.spec \ + cegcc-cegcc-$CEGCC_RELEASE/docs \ + cegcc-cegcc-$CEGCC_RELEASE/website \ + cegcc-cegcc-$CEGCC_RELEASE/test \ + cegcc-cegcc-$CEGCC_RELEASE/src +rm cegcc-cegcc-$CEGCC_RELEASE +# +echo "Ready to build with" +echo " " +echo " rm -rf /opt/cegcc/*" +echo " rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-cegcc-src-"$CEGCC_RELEASE".tar.gz" +echo "Note : " `ls -l /usr/src/rpm/SOURCES/cegcc-cegcc-src-"$CEGCC_RELEASE".tar.gz` +# +ln -s . cegcc-mingw32ce-$CEGCC_RELEASE +tar --exclude-from=/tmp/exclude-$$ \ + -cz -f /usr/src/rpm/SOURCES/cegcc-mingw32ce-src-$CEGCC_RELEASE.tar.gz \ + cegcc-mingw32ce-$CEGCC_RELEASE/NEWS \ + cegcc-mingw32ce-$CEGCC_RELEASE/README \ + cegcc-mingw32ce-$CEGCC_RELEASE/scripts/linux/mingw32ce.spec \ + cegcc-mingw32ce-$CEGCC_RELEASE/docs \ + cegcc-mingw32ce-$CEGCC_RELEASE/website \ + cegcc-mingw32ce-$CEGCC_RELEASE/test \ + cegcc-mingw32ce-$CEGCC_RELEASE/src +rm cegcc-mingw32ce-$CEGCC_RELEASE +# +# Remove temp file +# +rm -f /tmp/exclude-$$ +# +# Tell packager what to do. +# +echo " " +echo " rm -rf /opt/mingw32ce/*" +echo " rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-mingw32ce-src-"$CEGCC_RELEASE".tar.gz" +echo "Note : " `ls -l /usr/src/rpm/SOURCES/cegcc-mingw32ce-src-"$CEGCC_RELEASE".tar.gz` +echo " " +# +# All done +# +exit 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 18:51:32
|
Revision: 958 http://svn.sourceforge.net/cegcc/?rev=958&view=rev Author: dannybackx Date: 2007-06-16 11:51:30 -0700 (Sat, 16 Jun 2007) Log Message: ----------- Remove old versions Removed Paths: ------------- trunk/cegcc/scripts/linux/cegcc.spec trunk/cegcc/scripts/linux/mingw32ce.spec trunk/cegcc/scripts/linux/rpm-create-source.sh Deleted: trunk/cegcc/scripts/linux/cegcc.spec =================================================================== --- trunk/cegcc/scripts/linux/cegcc.spec 2007-06-16 18:48:02 UTC (rev 957) +++ trunk/cegcc/scripts/linux/cegcc.spec 2007-06-16 18:51:30 UTC (rev 958) @@ -1,75 +0,0 @@ -Summary: CeGCC offers cross-development to create Windows CE apps for ARM processors -Name: cegcc -%define version 0.12 -Version: 0.12 -Release: 1 -License: open -Packager: Danny Backx <dan...@us...> -Group: Development/Tools -Prefix: /opt/cegcc -# Source: http://sourceforge.net/project/showfiles.php?group_id=173455 -Source: /tmp/cegcc-src-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-buildroot - -%description -CeGCC - -%prep -%setup -q -# %setup -n cegcc-0.12 - -%build -rm -rf $RPM_BUILD_ROOT -export PREFIX=/opt/cegcc -cd src || exit 1 -# sh build-cegcc.sh . $RPM_BUILD_ROOT $PREFIX all || exit 1 -sh build-cegcc.sh all || exit 1 - -%install -cd / -rm -rf $RPM_BUILD_ROOT -mkdir $RPM_BUILD_ROOT -tar cf - opt/cegcc | (cd $RPM_BUILD_ROOT; tar xf -) - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -/opt/cegcc -#/opt/cegcc/arm-wince-cegcc -#%attr(755, root, root) /opt/cegcc/bin -#/opt/cegcc/include -#/opt/cegcc/lib -#/opt/cegcc/libexec -#/opt/cegcc/share -#/opt/cegcc/COPYING -#/opt/cegcc/COPYING.LIB -#/opt/cegcc/NEWS -#/opt/cegcc/README - -%changelog -* Sat Dec 31 2006 Danny Backx <dan...@us...> -- Strip out mingw32ce. - -* Sat Dec 30 2006 Danny Backx <dan...@us...> -- Adapt to Pedro's build scripts and /opt/cegcc and /opt/mingw32ce . - -* Wed Nov 1 2006 Danny Backx <dan...@us...> -- Add COPYING.LIB -- Increase level to produce a 0.11 version next time. - -* Wed Oct 11 2006 Danny Backx <dan...@us...> -- Add a couple of text files. - -* Sat Oct 7 2006 Danny Backx <dan...@us...> -- Change to implement arm-wince-cegcc and arm-wince-mingw32ce targets. - -* Sun Sep 17 2006 Danny Backx <dan...@us...> -- Add documentation files. - -* Thu Sep 14 2006 Danny Backx <dan...@us...> -- Fix the path in install so we don't need to have cegcc installed to be - able to run rpmbuild. - -* Sun Sep 3 2006 Danny Backx <dan...@us...> -- initial version of the spec file. Deleted: trunk/cegcc/scripts/linux/mingw32ce.spec =================================================================== --- trunk/cegcc/scripts/linux/mingw32ce.spec 2007-06-16 18:48:02 UTC (rev 957) +++ trunk/cegcc/scripts/linux/mingw32ce.spec 2007-06-16 18:51:30 UTC (rev 958) @@ -1,78 +0,0 @@ -Summary: CeGCC offers cross-development to create Windows CE apps for ARM processors -Name: cegcc-mingw32ce -%define version 0.12 -Version: 0.12 -Release: 1 -License: open -Packager: Danny Backx <dan...@us...> -Group: Development/Tools -Prefix: /opt/mingw32ce -# Source: http://sourceforge.net/project/showfiles.php?group_id=173455 -Source: /tmp/cegcc-mingw32ce-src-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-buildroot - -%description -CeGCC - -%prep -%setup -q -# %setup -n cegcc-minge32ce-0.12 - -%build -rm -rf $RPM_BUILD_ROOT -export PREFIX=/opt/mingw32ce -cd src || exit 1 -# sh build-cegcc.sh . $RPM_BUILD_ROOT $PREFIX all || exit 1 -sh build-mingw32ce.sh all || exit 1 - -%install -cd / -rm -rf $RPM_BUILD_ROOT -mkdir $RPM_BUILD_ROOT -tar cf - opt/mingw32ce | (cd $RPM_BUILD_ROOT; tar xf -) - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -/opt/mingw32ce -#/opt/cegcc/arm-wince-cegcc -#%attr(755, root, root) /opt/cegcc/bin -#/opt/cegcc/include -#/opt/cegcc/lib -#/opt/cegcc/libexec -#/opt/cegcc/share -#/opt/cegcc/COPYING -#/opt/cegcc/COPYING.LIB -#/opt/cegcc/NEWS -#/opt/cegcc/README - -%changelog -* Sat Jan 20 2007 Danny Backx <dan...@us...> -- Copy cegcc.spec into mingw32ce.spec, change the stuff that's required. - -* Sat Dec 31 2006 Danny Backx <dan...@us...> -- Strip out mingw32ce. - -* Sat Dec 30 2006 Danny Backx <dan...@us...> -- Adapt to Pedro's build scripts and /opt/cegcc and /opt/mingw32ce . - -* Wed Nov 1 2006 Danny Backx <dan...@us...> -- Add COPYING.LIB -- Increase level to produce a 0.11 version next time. - -* Wed Oct 11 2006 Danny Backx <dan...@us...> -- Add a couple of text files. - -* Sat Oct 7 2006 Danny Backx <dan...@us...> -- Change to implement arm-wince-cegcc and arm-wince-mingw32ce targets. - -* Sun Sep 17 2006 Danny Backx <dan...@us...> -- Add documentation files. - -* Thu Sep 14 2006 Danny Backx <dan...@us...> -- Fix the path in install so we don't need to have cegcc installed to be - able to run rpmbuild. - -* Sun Sep 3 2006 Danny Backx <dan...@us...> -- initial version of the spec file. Deleted: trunk/cegcc/scripts/linux/rpm-create-source.sh =================================================================== --- trunk/cegcc/scripts/linux/rpm-create-source.sh 2007-06-16 18:48:02 UTC (rev 957) +++ trunk/cegcc/scripts/linux/rpm-create-source.sh 2007-06-16 18:51:30 UTC (rev 958) @@ -1,77 +0,0 @@ -#!/bin/sh -if [ -x ./rpm-create-source.sh ]; then - cd ../.. - TOP_SRCDIR=`pwd` -else - TOP_SRCDIR=`pwd` -fi -# -export TOP_SRCDIR -# -# The name of this release -# -CEGCC_RELEASE=0.12 -export CEGCC_RELEASE -# -# Don't take unnecessary stuff in the source file. -# -echo '*/.svn*' >/tmp/exclude-$$ -echo '/*.cvs*' >>/tmp/exclude-$$ -echo '*/CVS' >>/tmp/exclude-$$ -echo '*/CVS/*' >>/tmp/exclude-$$ -echo 'cegcc-cegcc-'$CEGCC_RELEASE'/src/build-cegcc' >>/tmp/exclude-$$ -echo 'cegcc-cegcc-'$CEGCC_RELEASE'/src/build-cegcc/*' >>/tmp/exclude-$$ -echo 'cegcc-cegcc-'$CEGCC_RELEASE'/src/build-mingw32ce' >>/tmp/exclude-$$ -echo 'cegcc-cegcc-'$CEGCC_RELEASE'/src/build-mingw32ce/*' >>/tmp/exclude-$$ -echo 'cegcc-mingw32ce-'$CEGCC_RELEASE'/src/build-cegcc' >>/tmp/exclude-$$ -echo 'cegcc-mingw32ce-'$CEGCC_RELEASE'/src/build-cegcc/*' >>/tmp/exclude-$$ -echo 'cegcc-mingw32ce-'$CEGCC_RELEASE'/src/build-mingw32ce' >>/tmp/exclude-$$ -echo 'cegcc-mingw32ce-'$CEGCC_RELEASE'/src/build-mingw32ce/*' >>/tmp/exclude-$$ -echo '*~' >>/tmp/exclude-$$ -# -cd $TOP_SRCDIR -ln -s . cegcc-cegcc-$CEGCC_RELEASE -tar --exclude-from=/tmp/exclude-$$ \ - -cz -f /usr/src/rpm/SOURCES/cegcc-cegcc-src-$CEGCC_RELEASE.tar.gz \ - cegcc-cegcc-$CEGCC_RELEASE/NEWS \ - cegcc-cegcc-$CEGCC_RELEASE/README \ - cegcc-cegcc-$CEGCC_RELEASE/scripts/linux/cegcc.spec \ - cegcc-cegcc-$CEGCC_RELEASE/docs \ - cegcc-cegcc-$CEGCC_RELEASE/website \ - cegcc-cegcc-$CEGCC_RELEASE/test \ - cegcc-cegcc-$CEGCC_RELEASE/src -rm cegcc-cegcc-$CEGCC_RELEASE -# -echo "Ready to build with" -echo " " -echo " rm -rf /opt/cegcc/*" -echo " rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-cegcc-src-"$CEGCC_RELEASE".tar.gz" -echo "Note : " `ls -l /usr/src/rpm/SOURCES/cegcc-cegcc-src-"$CEGCC_RELEASE".tar.gz` -# -ln -s . cegcc-mingw32ce-$CEGCC_RELEASE -tar --exclude-from=/tmp/exclude-$$ \ - -cz -f /usr/src/rpm/SOURCES/cegcc-mingw32ce-src-$CEGCC_RELEASE.tar.gz \ - cegcc-mingw32ce-$CEGCC_RELEASE/NEWS \ - cegcc-mingw32ce-$CEGCC_RELEASE/README \ - cegcc-mingw32ce-$CEGCC_RELEASE/scripts/linux/mingw32ce.spec \ - cegcc-mingw32ce-$CEGCC_RELEASE/docs \ - cegcc-mingw32ce-$CEGCC_RELEASE/website \ - cegcc-mingw32ce-$CEGCC_RELEASE/test \ - cegcc-mingw32ce-$CEGCC_RELEASE/src -rm cegcc-mingw32ce-$CEGCC_RELEASE -# -# Remove temp file -# -rm -f /tmp/exclude-$$ -# -# Tell packager what to do. -# -echo " " -echo " rm -rf /opt/mingw32ce/*" -echo " rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-mingw32ce-src-"$CEGCC_RELEASE".tar.gz" -echo "Note : " `ls -l /usr/src/rpm/SOURCES/cegcc-mingw32ce-src-"$CEGCC_RELEASE".tar.gz` -echo " " -# -# All done -# -exit 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 18:48:05
|
Revision: 957 http://svn.sourceforge.net/cegcc/?rev=957&view=rev Author: dannybackx Date: 2007-06-16 11:48:02 -0700 (Sat, 16 Jun 2007) Log Message: ----------- First cut of this script, still debugging it. Added Paths: ----------- trunk/cegcc/scripts/make_release.sh Added: trunk/cegcc/scripts/make_release.sh =================================================================== --- trunk/cegcc/scripts/make_release.sh (rev 0) +++ trunk/cegcc/scripts/make_release.sh 2007-06-16 18:48:02 UTC (rev 957) @@ -0,0 +1,414 @@ +#!/bin/sh +# +# This release script contains some magic to restart where it failed or was aborted. +# Remove the make_release.status file to restart from the beginning, or to create +# a new release. (That file also contains the release id.) +# +# PASSED is a global variable to inspect success or failure. +# RESTARTED keeps track of where we were. +# +PASSED=yes +RESTARTED=0 +# +# Make sure not to get into trouble +# +LANG=C +export LANG +# +# Status file +# +ORIGDIR=`pwd` +STATUS=$ORIGDIR/make_release.status +# +# These are fixed +# +SVN_TRUNK="https://cegcc.svn.sourceforge.net/svnroot/cegcc/trunk/cegcc" +SVN_TAGS="https://cegcc.svn.sourceforge.net/svnroot/cegcc/tags" +# +# Functions +# +function report_status() +{ + echo 'PASSED='$PASSED >>$STATUS + echo 'RESTARTED='$RESTARTED >>$STATUS + echo 'VERSION='$VERSION >>$STATUS + echo 'UNAME='$UNAME >>$STATUS + echo 'LINUXDISTRO='$LINUXDISTRO >>$STATUS + echo 'HAS_RPM='$HAS_RPM >>$STATUS + echo 'ARCH='$ARCH >>$STATUS + echo 'TS1='$TS1 >>$STATUS + echo 'TS2='$TS2 >>$STATUS + echo 'TRUNKDIR='$TRUNKDIR >>$STATUS + echo 'TAGSDIR='$TAGSDIR >>$STATUS +} +# +# End functions +# +# +# Get status from file +# +if test -f $STATUS +then + RESTARTED=1 +# + echo "Reading $STATUS file" +# + . $STATUS + if test $RESTARTED -ne 0 + then + echo "This is a restart run of $0, previous level was $RESTARTED" + echo "Interrupt NOW to abort (4s)" + sleep 4 + fi +else + echo "No $STATUS file present" +fi + +if test $RESTARTED -ge 1 +then + echo "Skip level 0 (checks)" +else +# +# Level 0 (checks) +# + echo "Level 0 (checks)" + if [ -r ./NEWS -a -r scripts/linux/cegcc.spec -a -r scripts/linux/rpm-create-source.sh ]; then + TOPDIR=. + else + if [ -f ../NEWS -a -r linux/cegcc.spec -a -r linux/rpm-create-source.sh ]; then + TOPDIR=.. + else + echo "Cannot find CeGCC source directory, exiting" + if [ ! -r .svn/dir-wcprops ]; then + echo "We're not even in a SVN directory !" + fi + exit 1 + fi + fi + # + # Are we in an SVN directory ? + # + if [ ! -r .svn/dir-wcprops ]; then + echo "We're not in a SVN directory, terminating" + exit 1 + fi + TRUNKDIR=$TOPDIR/.. + TAGSDIR=$TRUNKDIR/../tags + # + if [ ! -d $TAGSDIR ]; then + echo "We're under SVN but something's still spooky, there's no tags directory" + echo "Exiting" + exit 1 + fi + # + # Do we have a release id yet ? + # + if [ "x$1" = "x" ] ; then + echo "Please specify a release id as command line argument to this script" + exit 1 + fi + VERSION=$1 + # + # If we're here then the tag shouldn't be present yet. + # + if [ -x $TAGSDIR/cegcc-$VERSION ]; then + echo "There is already a tag called cegcc-$VERSION in SVN, aborting" + exit 1 + fi + # + # End level 0 (checks) + # + RESTARTED=10 + report_status + # + # If this is a Linux system, figure out which distribution. + # FIX ME + # + # The idea is to have several variables to figure out what to do and what + # to call the names of the files we produce. + # + # LINUXDISTRO can be used as part of file names, so e.g. instead of + # cegcc-mingw32ce-0.15-1.i586.rpm + # we could have + # cegcc-mingw32ce-0.15-1.i586-mandriva.rpm + # or mandriva-cegcc-mingw32ce-0.15-1.i586.rpm + # + UNAME=`uname` + if [ "x$UNAME" = "xLinux" ]; then + ARCH="linux" + if [ -x /usr/sbin/rpmdrake ]; then + LINUXDISTRO="mandriva" + else + LINUXDISTRO="" + fi + if [ -x /usr/bin/rpm ]; then + HAS_RPM="yes" + else + HAS_RPM="no" + fi + else + true; + fi +fi + +# +# Level 10 +# +if test $RESTARTED -ge 11 +then + echo "Skip level 10 (create source tag in SVN)" +else + echo "Level 10 (create source tag in SVN)" + # echo "Warning: this may take a while ..." + TS1=`date +%Y-%m-%d-%H-%M-%s` + echo "svn copy $SVN_TRUNK $SVN_TAGS/cegcc-$VERSION" + OK=no + svn copy -m "Create tag $VERSION by make_release.sh" $SVN_TRUNK $SVN_TAGS/cegcc-$VERSION && OK=yes + TS2=`date +%Y-%m-%d-%H-%M-%s` + if [ $OK = "no" ]; then + echo "Creating the new tag in SVN failed, exiting ..." + exit 1 + fi + # + # End level 10 (create source tag in SVN) + # + RESTARTED=20 + report_status + # +fi + +# +# Level 20 +# +if test $RESTARTED -ge 21 +then + echo "Skip level 20 (checkout new tag from SVN)" +else + echo "Level 20 (checkout new tag from SVN)" + cd $ORIGDIR + cd $TAGSDIR + if [ -x cegcc-$VERSION ]; then + echo "Version cegcc-$VERSION already exists in $TAGSDIR" + echo "Exiting .." + exit 1 + fi + TS1=`date +%Y-%m-%d-%H-%M-%s` + echo "Warning: this may take a while ..." + echo "svn update cegcc-$VERSION" + OK=no + svn -q update cegcc-$VERSION && OK=yes + TS2=`date +%Y-%m-%d-%H-%M-%s` + if [ $OK = "no" ]; then + echo "Checkout from SVN failed, exiting ..." + exit 1 + fi + # + # End level 20 (checkout new tag from SVN) + # + RESTARTED=30 + report_status + # +fi + +# +# Level 30 +# +if test $RESTARTED -ge 31 +then + echo "Skip level 30 (modify README and script files)" +else + OK=no + cd $ORIGDIR + cd $TAGSDIR/cegcc-$VERSION + if [ -r README- ]; then + echo "You appear to have tampered with the status file." + echo "Do a better job at it : README- exists. Exiting." + exit 1 + else + mv README README- + (head -2 README- ; \ + echo "This is version $VERSION of CeGCC."; \ + tail +4 README-) >README && OK=yes + fi + if [ $OK = "no" ]; then + echo "Failed to edit README, exiting ..." + exit 1 + fi + cd scripts/linux && \ + rm -f cegcc.spec mingw32ce.spec rpm-create-source.sh && \ + sed -e "s/VerSION/$VERSION/g" <cegcc.spec.in >cegcc.spec && \ + sed -e "s/VerSION/$VERSION/g" <mingw32ce.spec.in >mingw32ce.spec && \ + sed -e "s/VerSION/$VERSION/g" <rpm-create-source.sh.in >rpm-create-source.sh && \ + OK=yes + if [ $OK = "no" ]; then + echo "Failed to do file editing, exiting" + exit 1 + fi + # + # End level 30 (modify README and script files) + # + RESTARTED=40 + report_status + # +fi + +# +# Level 40 +# +if test $RESTARTED -ge 41 +then + echo "Skip level 40 (commit previous changes to SVN)" +else + echo "Level 40 (commit previous changes to SVN)" + OK=no + cd $ORIGDIR + cd $TAGSDIR/cegcc-$VERSION && \ + svn commit -m "Specific file versions for CeGCC $VERSION" \ + README \ + scripts/linux && \ + OK=yes + if [ $OK = "no" ]; then + echo "Failed to commit changes, exiting ..." + exit 1 + fi + # + # End level 40 (commit previous changes to SVN) + # + RESTARTED=50 + report_status + # +fi + +# +# Level 50 +# +if test $RESTARTED -ge 51 +then + echo "Skip level 50 (Prepare for buiding RPMs)" +else + echo "Level 50 (Prepare for buiding RPMs)" + OK=no + cd $ORIGDIR + cd $TAGSDIR/cegcc-$VERSION/scripts/linux + sh rpm-create-source.sh && OK=yes + if [ $OK = "no" ]; then + echo "Checkout from SVN failed, exiting ..." + exit 1 + fi + RESTARTED=51 + report_status + # +fi + +# +# Level 51 +# +if test $RESTARTED -ge 52 +then + echo "Skip level 51 (Build CeGCC RPM)" +else + echo "Level 51 (Build CeGCC RPM)" + OK=no + rm -rf /opt/cegcc/* && + rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-cegcc-src-$VERSION.tar.gz && OK=yes + if [ $OK = "no" ]; then + echo "Build of CeGCC RPM failed, exiting ..." + exit 1 + fi + # + # End level 51 (Build CeGCC RPM) + # + RESTARTED=52 + report_status + # +fi + +# +# Level 52 +# +if test $RESTARTED -ge 53 +then + echo "Skip level 52 (Build Mingw32ce RPM)" +else + echo "Level 52 (Build Mingw32ce RPM)" + OK=no + rm -rf /opt/mingw32ce/* && + rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-mingw32ce-src-$VERSION.tar.gz && OK=yes + # + # End level 52 (Build Mingw32ce RPM) + # + RESTARTED=60 + report_status + # +fi + +# +# Level 60 +# +if test $RESTARTED -ge 61 +then + echo "Skip level 60 (FTP RPM)" +else + # + # End level 60 (FTP RPM) + # + RESTARTED=70 + report_status + # +fi + +# +# Level 70 +# +if test $RESTARTED -ge 71 +then + echo "Skip level 70 (Build binary tar images)" +else + # + # End level 70 (Build binary tar images) + # + RESTARTED=80 + report_status + # +fi + +# +# Level 80 +# +if test $RESTARTED -ge 81 +then + echo "Skip level 80 (FTP binary tar images)" +else + # + # End level 80 (FTP binary tar images) + # + RESTARTED=90 + report_status + # +fi + +# +# Level 90 +# +if test $RESTARTED -ge 91 +then + echo "Skip level 90 ()" +else + # + # End level 90 () + # + RESTARTED=100 + report_status + # +fi + +# +# Report progress +# +report_status +# +# +echo " " +echo "Exiting $0, result status $RESTARTED." +echo " " +exit 0 Property changes on: trunk/cegcc/scripts/make_release.sh ___________________________________________________________________ Name: svn:executable + * Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 18:33:54
|
Revision: 956 http://svn.sourceforge.net/cegcc/?rev=956&view=rev Author: dannybackx Date: 2007-06-16 11:33:47 -0700 (Sat, 16 Jun 2007) Log Message: ----------- Specific file versions for CeGCC 0.39test1 Modified Paths: -------------- tags/cegcc-0.39test1/README tags/cegcc-0.39test1/scripts/linux/cegcc.spec tags/cegcc-0.39test1/scripts/linux/mingw32ce.spec tags/cegcc-0.39test1/scripts/linux/rpm-create-source.sh Modified: tags/cegcc-0.39test1/README =================================================================== --- tags/cegcc-0.39test1/README 2007-06-16 11:41:00 UTC (rev 955) +++ tags/cegcc-0.39test1/README 2007-06-16 18:33:47 UTC (rev 956) @@ -1,6 +1,6 @@ CeGCC - cross-development tools for Windows CE (PocketPC). -This is the SVN version of CeGCC. +This is version 0.39test1 of CeGCC. The CeGCC project aims to provide a consistent and working set of development tools that generate code for Windows CE devices such as PDA's and smart phones. Modified: tags/cegcc-0.39test1/scripts/linux/cegcc.spec =================================================================== --- tags/cegcc-0.39test1/scripts/linux/cegcc.spec 2007-06-16 11:41:00 UTC (rev 955) +++ tags/cegcc-0.39test1/scripts/linux/cegcc.spec 2007-06-16 18:33:47 UTC (rev 956) @@ -1,7 +1,7 @@ Summary: CeGCC offers cross-development to create Windows CE apps for ARM processors Name: cegcc -%define version 0.12 -Version: 0.12 +%define version 0.39test1 +Version: 0.39test1 Release: 1 License: open Packager: Danny Backx <dan...@us...> @@ -16,7 +16,7 @@ %prep %setup -q -# %setup -n cegcc-0.12 +# %setup -n cegcc-0.39test1 %build rm -rf $RPM_BUILD_ROOT Modified: tags/cegcc-0.39test1/scripts/linux/mingw32ce.spec =================================================================== --- tags/cegcc-0.39test1/scripts/linux/mingw32ce.spec 2007-06-16 11:41:00 UTC (rev 955) +++ tags/cegcc-0.39test1/scripts/linux/mingw32ce.spec 2007-06-16 18:33:47 UTC (rev 956) @@ -1,7 +1,7 @@ Summary: CeGCC offers cross-development to create Windows CE apps for ARM processors Name: cegcc-mingw32ce -%define version 0.12 -Version: 0.12 +%define version 0.39test1 +Version: 0.39test1 Release: 1 License: open Packager: Danny Backx <dan...@us...> @@ -16,7 +16,7 @@ %prep %setup -q -# %setup -n cegcc-minge32ce-0.12 +# %setup -n cegcc-minge32ce-0.39test1 %build rm -rf $RPM_BUILD_ROOT Modified: tags/cegcc-0.39test1/scripts/linux/rpm-create-source.sh =================================================================== --- tags/cegcc-0.39test1/scripts/linux/rpm-create-source.sh 2007-06-16 11:41:00 UTC (rev 955) +++ tags/cegcc-0.39test1/scripts/linux/rpm-create-source.sh 2007-06-16 18:33:47 UTC (rev 956) @@ -10,7 +10,7 @@ # # The name of this release # -CEGCC_RELEASE=0.12 +CEGCC_RELEASE=0.39test1 export CEGCC_RELEASE # # Don't take unnecessary stuff in the source file. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 11:41:10
|
Revision: 955 http://svn.sourceforge.net/cegcc/?rev=955&view=rev Author: dannybackx Date: 2007-06-16 04:41:00 -0700 (Sat, 16 Jun 2007) Log Message: ----------- Create tag 0.39test1 by make_release.sh Added Paths: ----------- tags/cegcc-0.39test1/ Copied: tags/cegcc-0.39test1 (from rev 954, trunk/cegcc) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 11:26:02
|
Revision: 954 http://svn.sourceforge.net/cegcc/?rev=954&view=rev Author: dannybackx Date: 2007-06-16 04:26:00 -0700 (Sat, 16 Jun 2007) Log Message: ----------- test Added Paths: ----------- tags/copy-of-scriptdir/ Copied: tags/copy-of-scriptdir (from rev 953, trunk/cegcc/scripts) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2007-06-16 10:11:41
|
Revision: 953 http://svn.sourceforge.net/cegcc/?rev=953&view=rev Author: dannybackx Date: 2007-06-16 03:11:40 -0700 (Sat, 16 Jun 2007) Log Message: ----------- remove test Removed Paths: ------------- tags/x/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |