Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/bin Modified Files: edje_decc.c Log Message: solve the edje_decc file thing =================================================================== RCS file: /cvs/e/e17/libs/edje/src/bin/edje_decc.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- edje_decc.c 23 May 2006 03:23:31 -0000 1.18 +++ edje_decc.c 2 Mar 2007 07:24:32 -0000 1.19 @@ -11,6 +11,7 @@ char *progname = NULL; char *file_in = NULL; +char *file_out = NULL; Edje_File *edje_file = NULL; SrcFile_List *srcfiles = NULL; @@ -31,7 +32,7 @@ { printf ("Usage:\n" - "\t%s input_file.edj \n" + "\t%s input_file.edj [-main-out file.edc]\n" "\n" ,progname); } @@ -48,6 +49,11 @@ { if (!file_in) file_in = argv[i]; + else if ((!strcmp(argv[i], "-main-out")) && (i < (argc - 1))) + { + i++; + file_out = argv[i]; + } } if (!file_in) { @@ -285,6 +291,12 @@ fprintf(f, "#!/bin/sh\n"); fprintf(f, "%s $@ -id . -fd . %s -o %s.edj\n", edje_file->compiler, sf->name, outdir); fclose(f); + + if (file_out) + { + snprintf(out, sizeof(out), "%s/%s", outdir, file_out); + symlink(sf->name, out); + } #ifndef WIN32 chmod(out, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs