mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-01-09 02:00:14 +02:00
genex/: renamed genex to gencat
This commit is contained in:
parent
2800fa93a5
commit
e832845a02
@ -11,7 +11,7 @@
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
|
||||
OBJS = genex.o comp.o libs.o pdf.o
|
||||
OBJS = gencat.o comp.o libs.o pdf.o
|
||||
|
||||
SHELL = /bin/bash
|
||||
CFLAGS = -Wall -g
|
||||
@ -35,9 +35,9 @@ endif
|
||||
|
||||
.PHONY: all clean spotless install uninstall
|
||||
|
||||
all: genex-bin
|
||||
all: gencat-bin
|
||||
|
||||
genex-bin: $(OBJS)
|
||||
gencat-bin: $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
|
||||
|
||||
%.o: %.c
|
||||
@ -54,24 +54,24 @@ clean:
|
||||
rm -f $(OBJS) $(OBJS:.o=.d)
|
||||
|
||||
spotless: clean
|
||||
rm -f genex-bin
|
||||
rm -f gencat-bin
|
||||
|
||||
#
|
||||
# Note: we use .../lib/genex/ instead of .../libexec/genex/ because FHS-3.0
|
||||
# Note: we use .../lib/gencat/ instead of .../libexec/gencat/ because FHS-3.0
|
||||
# does not define libexec under the /usr/local/ hierarchy. (And older versions
|
||||
# of FHS don't define libexec at all.)
|
||||
#
|
||||
|
||||
install: all
|
||||
mkdir -p $(DESTDIR)/$(PREFIX)/bin
|
||||
mkdir -p $(DESTDIR)/$(PREFIX)/lib/genex
|
||||
./mkgenex-wrapper -m 755 -p $(DESTDIR)/$(PREFIX)/lib/genex/ \
|
||||
$(DESTDIR)/$(PREFIX)/bin/genex
|
||||
install -m 755 genex-bin $(DESTDIR)/$(PREFIX)/lib/genex/
|
||||
install -m 755 sym2xps $(DESTDIR)/$(PREFIX)/lib/genex/
|
||||
install -m 755 expand-pintype $(DESTDIR)/$(PREFIX)/lib/genex/
|
||||
mkdir -p $(DESTDIR)/$(PREFIX)/lib/gencat
|
||||
./mkgencat-wrapper -m 755 -p $(DESTDIR)/$(PREFIX)/lib/gencat/ \
|
||||
$(DESTDIR)/$(PREFIX)/bin/gencat
|
||||
install -m 755 gencat-bin $(DESTDIR)/$(PREFIX)/lib/gencat/
|
||||
install -m 755 sym2xps $(DESTDIR)/$(PREFIX)/lib/gencat/
|
||||
install -m 755 expand-pintype $(DESTDIR)/$(PREFIX)/lib/gencat/
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)/$(PREFIX)/bin/genex
|
||||
rm -rf $(DESTDIR)/$(PREFIX)/lib/genex
|
||||
rm -f $(DESTDIR)/$(PREFIX)/bin/gencat
|
||||
rm -rf $(DESTDIR)/$(PREFIX)/lib/gencat
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
PATH=$PATH:.
|
||||
exec genex-bin "$@"
|
||||
exec gencat-bin "$@"
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* genex.c - Generate expanded component view
|
||||
* gencat.c - Generate expanded component view
|
||||
*
|
||||
* Copyright 2012 by Werner Almesberger
|
||||
*
|
||||
@ -18,7 +18,7 @@
|
||||
#include "comp.h"
|
||||
#include "libs.h"
|
||||
#include "pdf.h"
|
||||
#include "genex.h"
|
||||
#include "gencat.h"
|
||||
|
||||
|
||||
int quiet = 0;
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* genex.h - Generate expanded component view
|
||||
* gencat.h - Generate expanded component view
|
||||
*
|
||||
* Copyright 2012 by Werner Almesberger
|
||||
*
|
||||
@ -9,9 +9,9 @@
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef GENEX_H
|
||||
#define GENEX_H
|
||||
#ifndef GENCAT_H
|
||||
#define GENCAT_H
|
||||
|
||||
extern int quiet;
|
||||
|
||||
#endif /* !GENEX_H */
|
||||
#endif /* !GENCAT_H */
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# mkgenex-wrapper - Generate wrapper script for genex
|
||||
# mkgencat-wrapper - Generate wrapper script for gencat
|
||||
#
|
||||
# Copyright 2012 by Werner Almesberger
|
||||
#
|
||||
@ -42,7 +42,7 @@ trap "rm -f _wrapper" 0
|
||||
cat <<EOF >_wrapper
|
||||
#!/bin/sh
|
||||
PATH=\$PATH:$DIR
|
||||
exec genex-bin "\$@"
|
||||
exec gencat-bin "\$@"
|
||||
EOF
|
||||
chmod $MODE _wrapper
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "genex.h"
|
||||
#include "gencat.h"
|
||||
#include "comp.h"
|
||||
#include "pdf.h"
|
||||
|
@ -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 ...
|
||||
./genex -p \
|
||||
./gencat -p \
|
||||
-L /home/qi/kicad-libs/components \
|
||||
/home/qi/kicad-libs/components/EXPAND DESC >out.pdf
|
Loading…
Reference in New Issue
Block a user