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