From 99ad99f6c360451305796b895419382e76c93970 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 1 Aug 2011 18:33:40 +0100 Subject: Add makepdf script --- Makefile | 7 ++++--- makepdf.sh | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100755 makepdf.sh diff --git a/Makefile b/Makefile index df6b1a4..395f927 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ NAME = getxbook SRC = getgbook.c LIB = util.o +SCRIPTS = getgmissing.sh makepdf.sh BIN = $(SRC:.c=) OBJ = $(SRC:.c=.o) $(LIB) @@ -28,17 +29,17 @@ util.a: $(LIB) @ranlib $@ install: all - cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin + cp -f $(BIN) $(SCRIPTS) $(DESTDIR)$(PREFIX)/bin uninstall: - cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN) + cd $(DESTDIR)$(PREFIX)/bin && rm -f $(BIN) $(SCRIPTS) clean: rm -f -- $(BIN) $(OBJ) util.a dist: @mkdir -p $(NAME)-$(VERSION) - @cp $(SRC) util.h util.c Makefile config.mk COPYING $(NAME)-$(VERSION) + @cp $(SRC) $(SCRIPTS) util.h util.c Makefile config.mk COPYING $(NAME)-$(VERSION) @tar c $(NAME)-$(VERSION) | gzip -c > $(NAME)-$(VERSION).tar.gz @rm -rf $(NAME)-$(VERSION) @echo $(NAME)-$(VERSION).tar.gz diff --git a/makepdf.sh b/makepdf.sh new file mode 100755 index 0000000..f8d852b --- /dev/null +++ b/makepdf.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# requires imagemagick + +convert *.png book.pdf -- cgit v1.2.3