summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-24 13:57:59 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-24 13:57:59 (GMT)
commitbe06ff46e5e63686585296008e387f147a642c5d (patch)
tree933ca7ec96021887306074b85107f586e31031d8 /kicad
parent342f88088165d9bc9edacbabf65886578029bf55 (diff)
downloadeeshow-be06ff46e5e63686585296008e387f147a642c5d.zip
eeshow-be06ff46e5e63686585296008e387f147a642c5d.tar.gz
eeshow-be06ff46e5e63686585296008e387f147a642c5d.tar.bz2
kicad/pl-render.c (expand): at long last, support %K (say that eeshow did it)
Diffstat (limited to 'kicad')
-rw-r--r--kicad/pl-render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index c5cdfe7..e5d674b 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -17,6 +17,7 @@
#include <ctype.h>
#include <math.h>
+#include "version.h"
#include "misc/util.h"
#include "misc/diag.h"
#include "gfx/style.h"
@@ -93,7 +94,8 @@ static char *expand(const struct pl_ctx *pl, const char *s,
cx = sheet->file;
break;
case 'K': // KiCad version
- cx = "%K";
+ alloc_printf(&x, "Plotted by eeshow %s %s",
+ version, build_date);
break;
case 'N': // number of sheets
n = 0;