mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
fileadder: print the generated files only when there is no image to write
The image rule no longer passes -p, so fileadder fell through to printing html_data.h and html_data.c on stdout on every image build. The listing is only useful when fileadder is run without an image, to see what it would generate.
This commit is contained in:
1 parent
3a92459190
commit
068ec4c510
1 file changed
+1
-1
+1
-1
@@ -441,7 +441,7 @@ int main(int argc, char **argv)
|
|||||||
fputs(xbuf, ofile);
|
fputs(xbuf, ofile);
|
||||||
fputs(fbuf, ofile);
|
fputs(fbuf, ofile);
|
||||||
fclose(ofile);
|
fclose(ofile);
|
||||||
} else if (addsDir){
|
} else if (addsDir && !argv[arg_index]) {
|
||||||
puts(dbuf);
|
puts(dbuf);
|
||||||
puts(xbuf);
|
puts(xbuf);
|
||||||
puts(ibuf);
|
puts(ibuf);
|
||||||
|
|||||||
Reference in new issue
Block a user