[kaffe] CVS kaffe (robilad): Added -force to kaffeh

Kaffe CVS cvs-commits at kaffe.org
Thu Feb 9 14:23:23 PST 2006


PatchSet 7124 
Date: 2006/02/09 22:14:12
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Added -force to kaffeh

2006-02-09  Dalibor Topic  <robilad at kaffe.org>

        Fix for #12.

        * kaffe/kaffeh/main.c: (options) Handle -force.
        (usage) Document -force.

Members: 
	ChangeLog:1.4642->1.4643 
	kaffe/kaffeh/main.c:1.20->1.21 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4642 kaffe/ChangeLog:1.4643
--- kaffe/ChangeLog:1.4642	Thu Feb  9 21:44:15 2006
+++ kaffe/ChangeLog	Thu Feb  9 22:14:12 2006
@@ -1,5 +1,12 @@
 2006-02-09  Dalibor Topic  <robilad at kaffe.org>
 
+	Fix for #12.
+
+	* kaffe/kaffeh/main.c: (options) Handle -force.
+	(usage) Document -force.
+
+2006-02-09  Dalibor Topic  <robilad at kaffe.org>
+
 	Fix for #15.
 
 	* libraries/javalib/vmspecific/gnu/classpath/VMSystemProperties.java:
Index: kaffe/kaffe/kaffeh/main.c
diff -u kaffe/kaffe/kaffeh/main.c:1.20 kaffe/kaffe/kaffeh/main.c:1.21
--- kaffe/kaffe/kaffeh/main.c:1.20	Sun Dec 18 17:35:42 2005
+++ kaffe/kaffe/kaffeh/main.c	Thu Feb  9 22:14:15 2006
@@ -344,6 +344,11 @@
 			i++;
 			directoryName = argv[i];
 		}
+		else if (strcmp(argv[i], "-force") == 0) {
+		  /* ignore the flag, since kaffeh overwrites
+		   * the output file in any case.
+		   */
+		}
 		else {
 			dprintf("Unknown flag: %s\n", argv[i]);
 		}
@@ -400,4 +405,6 @@
 #endif /*KAFFE_VMDEBUG*/
 	dprintf("	-o <file>		Generate all output to the given file\n");
 	dprintf("	-d <directory>		Directory for the output\n");
+	dprintf("Compatibility options:\n");
+	dprintf("	-force			Always (over)write output file\n");
 }




More information about the kaffe mailing list