[BACK]Return to debug-sed.c CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / Windows / debug-tools

Annotation of OpenXM/misc/packages/Windows/debug-tools/debug-sed.c, Revision 1.2

1.2     ! takayama    1: /* $OpenXM: OpenXM/misc/packages/Windows/debug-tools/debug-sed.c,v 1.1 2002/07/28 08:10:24 takayama Exp $ */
1.1       takayama    2: #include <stdio.h>
                      3: main(int argc, char *argv[]) {
                      4:   char path[1024];
                      5:   int i,j;
                      6:   sprintf(path,"c:\\\\cygwin");
                      7:   if (argc > 1) {
                      8:     j = strlen(path);
                      9:     for (i=0; i<strlen(argv[1]); i++) {
                     10:       if (argv[1][i] == '/') {
                     11:        path[j] = '\\'; j++;
                     12:        path[j] = '\\'; j++; path[j] = 0;
                     13:       }else{
                     14:         path[j++] = argv[1][i]; path[j]=0;
                     15:       }
                     16:     }
                     17:   }
                     18:   printf("s/set HOME=c:\\\\cygwin\\\\home\\\\nobuki//g\n");
1.2     ! takayama   19:   printf("s/set OpenXM_HOME_WIN=c:\\\\cygwin\\\\home\\\\%USERNAME%\\\\OpenXM\\\\misc\\\\packages\\\\Windows\\\\OpenXM-win/set OpenXM_HOME_WIN=%s\\\\OpenXM-win/g\n",path);
1.1       takayama   20:   printf("s/\\\\src\\\\kan96xx\\\\Kan/\\\\bin/g\n");
                     21:   exit(0);
                     22: }
                     23:
                     24:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>