diff options
author | Nick White <hg@njw.me.uk> | 2011-08-01 18:33:40 +0100 |
---|---|---|
committer | Nick White <hg@njw.me.uk> | 2011-08-01 18:33:40 +0100 |
commit | 99ad99f6c360451305796b895419382e76c93970 (patch) | |
tree | 7a3014b6cb2d0cfa8de777a9184db5611a798ed7 | |
parent | 063a0de3c10d38741c939297bb19d8284757e00c (diff) |
Add makepdf script
-rw-r--r-- | Makefile | 7 | ||||
-rwxr-xr-x | makepdf.sh | 4 |
2 files changed, 8 insertions, 3 deletions
@@ -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 |