1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-06-28 22:38:34 +03: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
all: genex
all: genex-bin
genex: $(OBJS)
genex-bin: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
%.o: %.c
@ -52,4 +52,4 @@ clean:
rm -f $(OBJS) $(OBJS:.o=.d)
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);
if (!i && 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) {
perror("asprintf");
exit(1);

View File

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