r5487 - trunk/eda/fped

werner at docs.openmoko.org werner at docs.openmoko.org
Wed Aug 19 16:39:00 CEST 2009


Author: werner
Date: 2009-08-19 16:38:59 +0200 (Wed, 19 Aug 2009)
New Revision: 5487

Modified:
   trunk/eda/fped/Makefile
   trunk/eda/fped/README
   trunk/eda/fped/TODO
   trunk/eda/fped/gui_style.c
Log:
- Makefile: now requires /bin/bash (for PIPESTATUS)
- Makefile: use PIPESTATUS to catch errors in the icon conversion pipe
- Makefile: whitespace and comment cleanup
- gui_style.c: removed no longer needed definition of INVALID



Modified: trunk/eda/fped/Makefile
===================================================================
--- trunk/eda/fped/Makefile	2009-08-19 10:36:03 UTC (rev 5486)
+++ trunk/eda/fped/Makefile	2009-08-19 14:38:59 UTC (rev 5487)
@@ -24,17 +24,18 @@
        meas.xpm meas_x.xpm meas_y.xpm \
        stuff.xpm stuff_off.xpm meas_off.xpm
 
+SHELL = /bin/bash
 CFLAGS_GTK = `pkg-config --cflags gtk+-2.0`
 LIBS_GTK = `pkg-config --libs gtk+-2.0`
 
-CFLAGS_WARN=-Wall -Wshadow -Wmissing-prototypes \
-            -Wmissing-declarations -Wno-format-zero-length
-CFLAGS=-g -std=gnu99 $(CFLAGS_GTK) -DCPP='"cpp"' $(CFLAGS_WARN)
-SLOPPY=-Wno-unused -Wno-implicit-function-declaration -Wno-missing-prototypes \
-       -Wno-missing-declarations
+CFLAGS_WARN = -Wall -Wshadow -Wmissing-prototypes \
+	      -Wmissing-declarations -Wno-format-zero-length
+CFLAGS = -g -std=gnu99 $(CFLAGS_GTK) -DCPP='"cpp"' $(CFLAGS_WARN)
+SLOPPY = -Wno-unused -Wno-implicit-function-declaration \
+	 -Wno-missing-prototypes -Wno-missing-declarations
 LDLIBS = -lm -lfl $(LIBS_GTK)
-YACC=bison -y
-YYFLAGS=-v
+YACC = bison -y
+YYFLAGS = -v
 
 # ----- Verbosity control -----------------------------------------------------
 
@@ -75,13 +76,11 @@
 
 # generate 26x26 pixels icons, then drop the 1-pixel frame
 
-# this adds a magenta border
-# sed '/2 2 0 1 /{s//2 2 0 15 /;s/ 0 7 / 22 7 /;}' $< | \
-
 .fig.xpm:
 		$(GEN) fig2dev -L xpm -Z 0.32 -S 4 $< | \
 		  convert -crop 24x24+1+1 - - | \
-		  sed "s/*.*\[]/*xpm_`basename $@ .xpm`[]/" >$@
+		  sed "s/*.*\[]/*xpm_`basename $@ .xpm`[]/" >$@; \
+		  [ "$${PIPESTATUS[*]}" = "0 0 0" ] || { rm -f $@; exit 1; }
 
 all:		fped
 

Modified: trunk/eda/fped/README
===================================================================
--- trunk/eda/fped/README	2009-08-19 10:36:03 UTC (rev 5486)
+++ trunk/eda/fped/README	2009-08-19 14:38:59 UTC (rev 5487)
@@ -15,6 +15,7 @@
 
 Prerequisites:
 
+- bash
 - flex
 - bison
 - fig2dev

Modified: trunk/eda/fped/TODO
===================================================================
--- trunk/eda/fped/TODO	2009-08-19 10:36:03 UTC (rev 5486)
+++ trunk/eda/fped/TODO	2009-08-19 14:38:59 UTC (rev 5487)
@@ -20,7 +20,6 @@
   upper toolbar
 - status area looks awful
 - add button with GTK_STOCK_UNDELETE for "undelete" to menu bar
-- edit names/values/etc. in place if possible
 - maximizing pad name size creates uneven text sizes. Particularly "1" gets
   excessively large.
 - pango_layout_get_size doesn't seem to consider rotation, so we currently
@@ -66,12 +65,14 @@
   we can already approximate this by introducing an intermediate table that
   sets up the arguments (provided that we don't consider vectors as well)
 - Q: should we make it a requirement to generate objects only once ?
-  A: almost certainly yes.
+  A: yes.
 
 Future directions:
 - future: consider using cairo instead of gdk
 - live update of value when entering strings and expressions ?
 - advanced: non-standard solder mask
 - advanced: solder paste exceptions (subtractive, additive)
+- advanced: holes
 - advanced: silk line width
-- future: consider editing non-canvas items in place
+- future: consider editing non-canvas items (e.g., variable names/values) in
+  place

Modified: trunk/eda/fped/gui_style.c
===================================================================
--- trunk/eda/fped/gui_style.c	2009-08-19 10:36:03 UTC (rev 5486)
+++ trunk/eda/fped/gui_style.c	2009-08-19 14:38:59 UTC (rev 5487)
@@ -18,9 +18,6 @@
 #include "gui_style.h"
 
 
-#define	INVALID	"#00ffff"
-
-
 GdkGC *gc_bg, *gc_bg_error;
 GdkGC *gc_drag;
 GdkGC *gc_highlight;




More information about the commitlog mailing list