build: $(PACKAGEDIR)/$(BINDIR)/scantopdf \
$(PACKAGEDIR)/$(BINDIR)/scantopdfgray \
- $(PACKAGEDIR)/$(BINDIR)/scantopdfbw
+ $(PACKAGEDIR)/$(BINDIR)/scantopdfbw \
+ $(PACKAGEDIR)/$(BINDIR)/addocr
package: $(BUILDDIR)/$(PACKAGENAME).deb
mkdir -p $(@D)
./tools/includer $(SRCDIR)/scantopdf \
- | sed "s/@VERSION@/$(VERSION)/" \
- > $(PACKAGEDIR)/$(BINDIR)/scantopdf
+ | sed "s/@VERSION@/$(VERSION)/" \
+ > $(PACKAGEDIR)/$(BINDIR)/scantopdf
chmod 755 $(PACKAGEDIR)/$(BINDIR)/scantopdf
$(PACKAGEDIR)/$(BINDIR)/scantopdfgray: \
mkdir -p $(@D)
./tools/includer $(SRCDIR)/scantopdfgray \
- | sed "s/@VERSION@/$(VERSION)/" \
- > $(PACKAGEDIR)/$(BINDIR)/scantopdfgray
+ | sed "s/@VERSION@/$(VERSION)/" \
+ > $(PACKAGEDIR)/$(BINDIR)/scantopdfgray
chmod 755 $(PACKAGEDIR)/$(BINDIR)/scantopdfgray
$(PACKAGEDIR)/$(BINDIR)/scantopdfbw: \
mkdir -p $(@D)
./tools/includer $(SRCDIR)/scantopdfgray \
- | sed "s/@VERSION@/$(VERSION)/" \
- > $(PACKAGEDIR)/$(BINDIR)/scantopdfbw
+ | sed "s/@VERSION@/$(VERSION)/" \
+ > $(PACKAGEDIR)/$(BINDIR)/scantopdfbw
chmod 755 $(PACKAGEDIR)/$(BINDIR)/scantopdfbw
+$(PACKAGEDIR)/$(BINDIR)/addocr: \
+ $(SRCDIR)/errlog.sh \
+ $(SRCDIR)/addocr.sh
+
+ mkdir -p $(@D)
+ ./tools/includer $(SRCDIR)/addocr \
+ | sed "s/@VERSION@/$(VERSION)/" \
+ > $(PACKAGEDIR)/$(BINDIR)/addocr
+ chmod 755 $(PACKAGEDIR)/$(BINDIR)/addocr
+
################################################################################
$(PACKAGEDIR)/$(SHAREDIR)/scantopdf/cutpage.html: \
$(PACKAGEDIR)/$(BINDIR)/scantopdf \
$(PACKAGEDIR)/$(BINDIR)/scantopdfgray \
$(PACKAGEDIR)/$(BINDIR)/scantopdfbw \
+ $(PACKAGEDIR)/$(BINDIR)/addocr \
$(PACKAGEDIR)/$(SHAREDIR)/scantopdf/cutpage.html \
$(PACKAGEDIR)/DEBIAN/control