int no_lossy = 0;
int no_comp = 0;
int no_raw = 0;
+int no_save = 0;
int min_quality = 0;
int max_quality = 100;
"-no-lossy Do NOT allow images to be lossy\n"
"-no-comp Do NOT allow images to be stored with lossless compression\n"
"-no-raw Do NOT allow images to be stored with zero compression (raw)\n"
+ "-no-save Do NOT store the input EDC file in the EDJ file\n"
"-min-quality VAL Do NOT allow lossy images with quality < VAL (0-100)\n"
"-max-quality VAL Do NOT allow lossy images with quality > VAL (0-100)\n"
"-Ddefine_val=to CPP style define to define input macro definitions to the .edc source\n"
{
no_raw = 1;
}
+ else if (!strcmp(argv[i], "-no-save"))
+ {
+ no_save = 1;
+ }
else if ((!strcmp(argv[i], "-id") || !strcmp(argv[i], "--image_dir")) && (i < (argc - 1)))
{
i++;
{
char tmpn[PATH_MAX];
char tmpo[PATH_MAX];
- char buf[PATH_MAX];
int fd;
Code *cd = eina_list_data_get(l);
- Eina_List *ll;
- Code_Program *cp;
-
+
if (cd->is_lua)
continue;
if ((!cd->shared) && (!cd->programs))
unlink(tmpn);
unlink(tmpo);
- if (cd->original)
+ if (!no_save)
{
- snprintf(buf, PATH_MAX, "edje/scripts/embryo/source/%i", i);
- eet_write(ef, buf, cd->original, strlen(cd->original) + 1, 1);
- }
- EINA_LIST_FOREACH(cd->programs, ll, cp)
- {
- if (!cp->original)
- continue;
- snprintf(buf, PATH_MAX, "edje/scripts/embryo/source/%i/%i", i,
- cp->id);
- eet_write(ef, buf, cp->original, strlen(cp->original) + 1, 1);
+ char buf[PATH_MAX];
+ Eina_List *ll;
+ Code_Program *cp;
+
+ if (cd->original)
+ {
+ snprintf(buf, PATH_MAX, "edje/scripts/embryo/source/%i", i);
+ eet_write(ef, buf, cd->original, strlen(cd->original) + 1, 1);
+ }
+ EINA_LIST_FOREACH(cd->programs, ll, cp)
+ {
+ if (!cp->original)
+ continue;
+ snprintf(buf, PATH_MAX, "edje/scripts/embryo/source/%i/%i", i,
+ cp->id);
+ eet_write(ef, buf, cp->original, strlen(cp->original) + 1, 1);
+ }
}
}
}