1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-04 22:58:26 +02:00

genex/: "genex" is now a wrapper that sets PATH, then calls genex-bin

This commit is contained in:
Werner Almesberger 2012-04-17 17:36:32 -03:00
parent 40a76e1d4a
commit fff142c6de
4 changed files with 8 additions and 5 deletions

View File

@ -33,9 +33,9 @@ endif
.PHONY: all clean spotless .PHONY: all clean spotless
all: genex all: genex-bin
genex: $(OBJS) genex-bin: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
%.o: %.c %.o: %.c
@ -52,4 +52,4 @@ clean:
rm -f $(OBJS) $(OBJS:.o=.d) rm -f $(OBJS) $(OBJS:.o=.d)
spotless: clean spotless: clean
rm -f genex rm -f genex-bin

3
genex/genex Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
PATH=$PATH:.
exec genex-bin "$@"

View File

@ -183,7 +183,7 @@ static void convert_comp(const struct node *node, FILE *out)
make_title(out, node, i); make_title(out, node, i);
if (!i && node->comment) if (!i && node->comment)
print_comment(out, node->comment); print_comment(out, node->comment);
if (asprintf(&tmp, "./sym2xps '%s' '%s' %d '%s' '%s'", if (asprintf(&tmp, "sym2xps '%s' '%s' %d '%s' '%s'",
node->lib, node->names->s, i+1, "tmp", "tmp.ps") < 0) { node->lib, node->names->s, i+1, "tmp", "tmp.ps") < 0) {
perror("asprintf"); perror("asprintf");
exit(1); exit(1);

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Hack: ps2pdf is happy with the PS generate, but if we invoke gs diretctly, # Hack: ps2pdf is happy with the PS generate, but if we invoke gs diretctly,
# isn't. Some voodoo is still missing ... # isn't. Some voodoo is still missing ...
PATH=$PATH:. ./genex -p \ ./genex -p \
-L /home/qi/kicad-libs/components \ -L /home/qi/kicad-libs/components \
/home/qi/kicad-libs/components/EXPAND DESC >out.pdf /home/qi/kicad-libs/components/EXPAND DESC >out.pdf