Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/bin
Modified Files:
edje_cc.c
Log Message:
optional output file spec
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- edje_cc.c 17 Jun 2003 08:15:06 -0000 1.8
+++ edje_cc.c 6 Aug 2003 01:29:12 -0000 1.9
@@ -13,7 +13,7 @@
{
printf
("Usage:\n"
- "\t%s [OPTIONS] input_file.edc output_file.eet\n"
+ "\t%s [OPTIONS] input_file.edc [output_file.eet]\n"
"\n"
"Where OPTIONS is one or more of:\n"
"\n"
@@ -57,6 +57,20 @@
main_help();
exit(-1);
}
+ if (!file_out)
+ {
+ char *suffix;
+
+ if ((suffix = strstr(file_in,".edc")) && (suffix[4] == 0))
+ {
+ file_out = strdup(file_in);
+ if (file_out)
+ {
+ suffix = strstr(file_out,".edc");
+ strcpy(suffix,".eet");
+ }
+ }
+ }
if (!file_out)
{
fprintf(stderr, "%s: Error: no output file specified.\n", progname);
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs