chiark / gitweb /
layer defaults to *
authorian <ian>
Mon, 2 Feb 2004 01:54:16 +0000 (01:54 +0000)
committerian <ian>
Mon, 2 Feb 2004 01:54:16 +0000 (01:54 +0000)
layout/informat.txt
layout/layout
pcb/Makefile
pic.make
spice/Makefile

index fb1c959ca7910f0e8eaa2eb2dbf9436437484174..c70f3fae0e515795d0a90fced69e43790687c712 100644 (file)
@@ -115,7 +115,7 @@ Command-line options
  -D       turn on debug (level 1)  } currently only debug levels are
  -Dnnn    set debug level to nnn   }  0 (none) and 1 (some), default=0
 
- -lL      output for layer L (default: 5)
+ -lL      output for layer L (digits, or `*' for any) (default: *)
 
  -e<layersel>[ARSCcLlMNOm]...
           Turn on and off drawing of elements in groups.
index 91f743729b490b2d3c34c547e90bdd584900f8d7..36670791f723f829c7306dc741aca28b69f5d1ef 100755 (executable)
@@ -36,7 +36,7 @@ our $olu_textheight= 15;
 our $olu_textallowperc= $lmu_marktpt * 5.0/11;
 
 our $pi= atan2(0,-1);
-our $output_layer= 5;
+our $output_layer= '*';
 
 sub allwidth2 ($) {
     my ($radius)= @_;
@@ -734,11 +734,11 @@ sub cmd__runobj ($) {
 
 sub cmd_layer {
     my ($kl, $k,$l, $eo,$cc);
-    return if $ctx->{Draw} =~ m/X/;
     $kl= can(\&cva_identity);
+    return if $ctx->{Draw} =~ m/X/;
     $kl =~ m/^([A-Za-z_]*)(\d+)$/ or die "invalid layer spec";
     ($k,$l)=($1,$2);
-    if ($l != $output_layer) {
+    if ($output_layer ne '*' && $l != $output_layer) {
        $ctx->{Draw} = '';
     } elsif ($k eq '') {
        $ctx->{Draw}= 'RLMN';
@@ -751,7 +751,7 @@ sub cmd_layer {
     }
     foreach $eo (@eopts) {
        next unless $k =~ m/^$eo->{GlobRe}$/;
-       next unless &{ $eo->{LayerCheck} }($l);
+       next unless $output_layer eq '*' || &{ $eo->{LayerCheck} }($l);
        foreach $cc (split //, $eo->{DrawMods}) {
            $ctx->{Draw} =~ s/$cc//ig;
            $ctx->{Draw} .= $cc if $cc =~ m/[A-Z]/;
index 8178c6aa8c963de7ca9b21dc2dceaf6677627915..2c6988fe0bfe618b74d0307e837772c9ab5b2db1 100644 (file)
@@ -17,7 +17,7 @@ o=>$@.new && mv -f $@.new $@
                m4 -s <$< $o
 
 %-a.ps:                %.d4 layout
-               ./layout <$< -E10=100$(E_TRACK) $o
+               ./layout <$< $(LAYOUTOPTS) $o
 
 ours-l%.ps:    ours.d4 layout
                ./layout <$< $(LAYOUTOPTS) $o
index 8178c6aa8c963de7ca9b21dc2dceaf6677627915..2c6988fe0bfe618b74d0307e837772c9ab5b2db1 100644 (file)
--- a/pic.make
+++ b/pic.make
@@ -17,7 +17,7 @@ o=>$@.new && mv -f $@.new $@
                m4 -s <$< $o
 
 %-a.ps:                %.d4 layout
-               ./layout <$< -E10=100$(E_TRACK) $o
+               ./layout <$< $(LAYOUTOPTS) $o
 
 ours-l%.ps:    ours.d4 layout
                ./layout <$< $(LAYOUTOPTS) $o
index 8178c6aa8c963de7ca9b21dc2dceaf6677627915..2c6988fe0bfe618b74d0307e837772c9ab5b2db1 100644 (file)
@@ -17,7 +17,7 @@ o=>$@.new && mv -f $@.new $@
                m4 -s <$< $o
 
 %-a.ps:                %.d4 layout
-               ./layout <$< -E10=100$(E_TRACK) $o
+               ./layout <$< $(LAYOUTOPTS) $o
 
 ours-l%.ps:    ours.d4 layout
                ./layout <$< $(LAYOUTOPTS) $o