Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        commitlog-requ...@lists.openmoko.org

You can reach the person managing the list at
        commitlog-ow...@lists.openmoko.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r5978 - in trunk/eda/fped: . test (wer...@docs.openmoko.org)
   2. r5979 - trunk/eda/fped (wer...@docs.openmoko.org)
   3. r5980 - trunk/eda/fped (wer...@docs.openmoko.org)
   4. r5981 - trunk/eda/fped (wer...@docs.openmoko.org)
   5. r5982 - trunk/eda/fped (wer...@docs.openmoko.org)
--- Begin Message ---
Author: werner
Date: 2010-10-12 17:32:15 +0200 (Tue, 12 Oct 2010)
New Revision: 5978

Modified:
   trunk/eda/fped/Makefile
   trunk/eda/fped/test/Common
   trunk/eda/fped/test/del_frame
   trunk/eda/fped/test/del_vec
   trunk/eda/fped/test/frame_ref
   trunk/eda/fped/test/meas_qual
   trunk/eda/fped/test/structure
   trunk/eda/fped/test/tsort
Log:
Updated regression tests for output change in r5974 and improved handling of
cores.

- test/structure, test/del_vec, test/frame_ref, test/meas_qual, test/del_frame:
  added newline after "unit" directive (reported by Xiangfu Liu)
- test/Common: new function expect_sed for post-processing of test output
- test/tsort: use expect_sed to ignore "(core dumped") after "Aborted"
- test/Common: if there is a file called "core", don't run it
- Makefile (clean): remove test/core



Modified: trunk/eda/fped/Makefile
===================================================================
--- trunk/eda/fped/Makefile     2010-09-12 19:41:14 UTC (rev 5977)
+++ trunk/eda/fped/Makefile     2010-10-12 15:32:15 UTC (rev 5978)
@@ -162,7 +162,7 @@
                LANG= sh -c \
                  'passed=0 && cd test && \
                  for n in [a-z]*; do \
-                 SCRIPT=$$n CWD_PREFIX=.. . ./$$n; done; \
+                 [ $$n != core ] && SCRIPT=$$n CWD_PREFIX=.. . ./$$n; done; \
                  echo "Passed all $$passed tests"'
 
 valgrind:
@@ -173,7 +173,7 @@
 clean:
                rm -f $(OBJS) $(XPMS:%=icons/%) $(XPMS:%.xpm=icons/%.ppm)
                rm -f lex.yy.c y.tab.c y.tab.h y.output .depend $(OBJS:.o=.d)
-               rm -f __dbg????.png _tmp*
+               rm -f __dbg????.png _tmp* test/core
 
 # ----- Install / uninstall ---------------------------------------------------
 

Modified: trunk/eda/fped/test/Common
===================================================================
--- trunk/eda/fped/test/Common  2010-09-12 19:41:14 UTC (rev 5977)
+++ trunk/eda/fped/test/Common  2010-10-12 15:32:15 UTC (rev 5978)
@@ -71,6 +71,15 @@
 }
 
 
+expect_sed()
+{
+       sed "$1" <_out >_tmp || exit 1
+       mv _tmp _out
+       shift
+       expect "$@"
+}
+
+
 if [ ! -z "$CWD_PREFIX" -a ! -z "$FPED" -a "$FPED" = "${FPED#/}" ]; then
     FPED="$CWD_PREFIX/$FPED"
 fi

Modified: trunk/eda/fped/test/del_frame
===================================================================
--- trunk/eda/fped/test/del_frame       2010-09-12 19:41:14 UTC (rev 5977)
+++ trunk/eda/fped/test/del_frame       2010-10-12 15:32:15 UTC (rev 5978)
@@ -26,6 +26,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -44,6 +45,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -63,6 +65,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -88,6 +91,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 ###############################################################################

Modified: trunk/eda/fped/test/del_vec
===================================================================
--- trunk/eda/fped/test/del_vec 2010-09-12 19:41:14 UTC (rev 5977)
+++ trunk/eda/fped/test/del_vec 2010-10-12 15:32:15 UTC (rev 5978)
@@ -12,6 +12,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -26,6 +27,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -40,6 +42,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -60,6 +63,7 @@
 
 package "_"
 unit mm
+
 frame f @
 EOF
 

Modified: trunk/eda/fped/test/frame_ref
===================================================================
--- trunk/eda/fped/test/frame_ref       2010-09-12 19:41:14 UTC (rev 5977)
+++ trunk/eda/fped/test/frame_ref       2010-10-12 15:32:15 UTC (rev 5978)
@@ -15,6 +15,7 @@
 
 package "_"
 unit mm
+
 frame f @
 EOF
 
@@ -32,6 +33,7 @@
 
 package "_"
 unit mm
+
 frame f @
 EOF
 
@@ -50,6 +52,7 @@
 
 package "_"
 unit mm
+
 v: vec @(0mm, 0mm)
 frame f .
 EOF
@@ -73,6 +76,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -97,6 +101,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -138,6 +143,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 ###############################################################################

Modified: trunk/eda/fped/test/meas_qual
===================================================================
--- trunk/eda/fped/test/meas_qual       2010-09-12 19:41:14 UTC (rev 5977)
+++ trunk/eda/fped/test/meas_qual       2010-10-12 15:32:15 UTC (rev 5978)
@@ -27,6 +27,7 @@
 
 package "_"
 unit mm
+
 frame a @
 meas c.v >> c.v
 EOF

Modified: trunk/eda/fped/test/structure
===================================================================
--- trunk/eda/fped/test/structure       2010-09-12 19:41:14 UTC (rev 5977)
+++ trunk/eda/fped/test/structure       2010-10-12 15:32:15 UTC (rev 5978)
@@ -10,6 +10,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -26,6 +27,7 @@
 
 package "_"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -38,6 +40,7 @@
 
 package "hello"
 unit mm
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -50,6 +53,7 @@
 
 package "_"
 unit mil
+
 EOF
 
 #------------------------------------------------------------------------------
@@ -62,6 +66,7 @@
 
 package "_"
 unit mm
+
 __0: vec @(1mm, 1mm)
 EOF
 
@@ -85,6 +90,7 @@
 
 package "_"
 unit mm
+
 frame f @
 meas f.a -> f.b
 EOF

Modified: trunk/eda/fped/test/tsort
===================================================================
--- trunk/eda/fped/test/tsort   2010-09-12 19:41:14 UTC (rev 5977)
+++ trunk/eda/fped/test/tsort   2010-10-12 15:32:15 UTC (rev 5978)
@@ -126,9 +126,9 @@
        b a
 }
 EOF
-expect <<EOF
+expect_sed 's/Aborted.*/Aborted/' <<EOF
 cycle detected in partial order
-Aborted (core dumped)
+Aborted
 EOF
 
 # not entirely comfortable about the "Aborted (core dumped)". It's a system




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-10-12 17:39:32 +0200 (Tue, 12 Oct 2010)
New Revision: 5979

Modified:
   trunk/eda/fped/Makefile
Log:
Makefile (spotless): added target to remove "fped" (suggested by Xiangfu Liu)



Modified: trunk/eda/fped/Makefile
===================================================================
--- trunk/eda/fped/Makefile     2010-10-12 15:32:15 UTC (rev 5978)
+++ trunk/eda/fped/Makefile     2010-10-12 15:39:32 UTC (rev 5979)
@@ -81,7 +81,8 @@
 
 # ----- Rules -----------------------------------------------------------------
 
-.PHONY:                all dep depend clean install uninstall manual 
upload-manual
+.PHONY:                all dep depend clean spotless
+.PHONY:                install uninstall manual upload-manual
 .PHONY:                update montage test tests valgrind
 
 .SUFFIXES:     .fig .xpm .ppm
@@ -96,7 +97,7 @@
                    '/^\(.*:\)\? */{p;s///;s/ *\\\?$$/ /;s/  */:\n/g;H;}' \
                    -e '$${g;p;}' -e d >$*.d; \
                  [ "$${PIPESTATUS[*]}" = "0 0" ] || { rm -f $*.d; exit 1; }
-               
+
 # generate 26x26 pixels icons, then drop the 1-pixel frame
 
 .fig.ppm:
@@ -175,6 +176,9 @@
                rm -f lex.yy.c y.tab.c y.tab.h y.output .depend $(OBJS:.o=.d)
                rm -f __dbg????.png _tmp* test/core
 
+spotless:      clean
+               rm -f fped
+
 # ----- Install / uninstall ---------------------------------------------------
 
 install:       all




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-10-12 17:40:57 +0200 (Tue, 12 Oct 2010)
New Revision: 5980

Modified:
   trunk/eda/fped/Makefile
Log:
make the SVN_VERSION, SVN_STATUS run only once.
this can reduce warning "svn: '.' is not a working copy"
when we not in a svn repo.

Signed-off-by: Xiangfu Liu <xian...@sharism.cc>



Modified: trunk/eda/fped/Makefile
===================================================================
--- trunk/eda/fped/Makefile     2010-10-12 15:39:32 UTC (rev 5979)
+++ trunk/eda/fped/Makefile     2010-10-12 15:40:57 UTC (rev 5980)
@@ -45,9 +45,9 @@
 YACC = bison -y
 YYFLAGS = -v
 
-SVN_VERSION=$(shell svn info -R | sed '/Last Changed Rev: /s///p;d' | \
+SVN_VERSION:=$(shell svn info -R | sed '/Last Changed Rev: /s///p;d' | \
     sort -r | sed 1q)
-SVN_STATUS=$(shell [ -z "`svn status -q`" ] || echo +)
+SVN_STATUS:=$(shell [ -z "`svn status -q`" ] || echo +)
 
 
 # ----- Verbosity control -----------------------------------------------------




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-10-12 17:44:21 +0200 (Tue, 12 Oct 2010)
New Revision: 5981

Added:
   trunk/eda/fped/fped.1
Log:
add the manual page manual/fped.1

Signed-off-by: Xiangfu Liu <xian...@sharism.cc>

[ changed the location to ./ - manual/ is more about extra data for the
  HTML manual. - Werner ]



Added: trunk/eda/fped/fped.1
===================================================================
--- trunk/eda/fped/fped.1                               (rev 0)
+++ trunk/eda/fped/fped.1       2010-10-12 15:44:21 UTC (rev 5981)
@@ -0,0 +1,51 @@
+.TH FPED: "1" "October 2010"
+.SH NAME
+fped \- Footprint editor
+.SH SYNOPSIS
+.TP
+.B fped [\-k] [\-p|\-P [\-s scale]] [\-T [\-T]] [cpp_option ...] 
+[in_file [out_file]]
+
+.SH DESCRIPTION
+.B
+fped is an editor that allows the interactive creation of footprints of
+electronic components. Footprint definitions are stored in a text format
+that resembles a programming language.
+The language is constrained such that anything that can be expressed in
+the textual definition also has a straightforward equivalent operation
+that can be performed through the GUI.
+A description of the GUI can be found here:
+http://people.openmoko.org/werner/fped/gui.html
+.SH OPTIONS
+.TP
+\fB\-k\fR
+write KiCad output, then exit
+.TP
+\fB\-p\fR
+write Postscript output, then exit
+.TP
+\fB\-P\fR
+write Postscript output (full page), then exit
+.TP
+\fB\-s\fR scale
+scale factor for \fB\-P\fR (default: auto\-scale)
+.TP
+\fB\-T\fR
+test mode. Load file, then exit
+.TP
+\fB\-T\fR \fB\-T\fR
+test mode. Load file, dump to stdout, then exit
+.TP
+cpp_option
+\fB\-Idir\fR, \fB\-Dname\fR[=\fIvalue\fR], or \fB\-Uname\fR
+.PP
+Please report any further bugs at
+.B wer...@openmoko.org
+.SH LICENCE
+.B fped
+is covered by the GNU General Public License (GPL), version 2 or later.
+.SH AUTHORS
+Werner Almesberger <wer...@openmoko.org>
+.PP
+This manual page was written by Xiangfu Liu <xian...@sharism.cc>
+It is licensed under the terms of the GNU GPL (version 2 or later).




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-10-12 17:45:09 +0200 (Tue, 12 Oct 2010)
New Revision: 5982

Modified:
   trunk/eda/fped/Makefile
Log:
add DESTDIR to Makefile.

the Debian package is need DESTDIR and Debian also install binary 
to /usr/bin/

Signed-off-by: Xiangfu Liu <xian...@sharism.cc>



Modified: trunk/eda/fped/Makefile
===================================================================
--- trunk/eda/fped/Makefile     2010-10-12 15:44:21 UTC (rev 5981)
+++ trunk/eda/fped/Makefile     2010-10-12 15:45:09 UTC (rev 5982)
@@ -10,7 +10,7 @@
 # (at your option) any later version.
 #
 
-PREFIX = /usr/local
+PREFIX ?= /usr/local
 
 UPLOAD = wer...@sita.openmoko.org:public_html/fped/
 
@@ -182,10 +182,11 @@
 # ----- Install / uninstall ---------------------------------------------------
 
 install:       all
-               install -m 755 fped $(PREFIX)/bin/
+               mkdir -p $(DESTDIR)/$(PREFIX)/bin/
+               install -m 755 fped $(DESTDIR)/$(PREFIX)/bin/
 
 uninstall:
-               rm -f $(PREFIX)/bin/fped
+               rm -f $(DESTDIR)/$(PREFIX)/bin/fped
 
 # ----- SVN update ------------------------------------------------------------
 




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to