]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
add changelog
authorBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 12:36:20 +0000 (14:36 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 12:36:20 +0000 (14:36 +0200)
Makefile
src/debian/changelog [new file with mode: 0644]

index 341558424fc9ebd96458c0347dae107feaa6c4d3..fe43ac52c8981d3a777eccc741262642d386ae07 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,15 @@
+NAME=scantopdf
 VERSIONNR=1.1.5
 BUILDVERSION=1
 ARCHITECTURE=x86_64
 VERSION=$(VERSIONNR)
-PACKAGENAME=scantopdf-$(VERSION)-$(BUILDVERSION)$(EXTRA_VERSION)-$(ARCHITECTURE)
+PACKAGENAME=$(NAME)-$(VERSION)-$(BUILDVERSION)$(EXTRA_VERSION)-$(ARCHITECTURE)
 BUILDDIR=build
 SRCDIR=src
 PACKAGEDIR=$(BUILDDIR)/$(PACKAGENAME)
 PREFIX=usr
 BINDIR=$(PREFIX)/bin
-SHAREDIR=$(PREFIX)/share/doc
+SHAREDIR=$(PREFIX)/share/doc/$(NAME)
 
 ################################################################################
 
@@ -41,8 +42,7 @@ $(BUILDDIR)/parts/scanbasic.sh: \
        $(SRCDIR)/scanbasic.sh
 
        mkdir --parents $(@D)
-       ./tools/includer $(SRCDIR)/scanbasic.sh \
-               > $(@)
+       ./tools/includer $(SRCDIR)/scanbasic.sh > $(@)
 
 ################################################################################
 
@@ -51,8 +51,7 @@ $(PACKAGEDIR)/$(BINDIR)/scantopdf: \
 
        mkdir --parents $(@D)
        ./tools/includer $(SRCDIR)/scantopdf \
-               | sed "s/@VERSION@/$(VERSION)/" \
-               > $(@)
+               | sed "s/@VERSION@/$(VERSION)/" > $(@)
        chmod 755 $(@)
 
 $(PACKAGEDIR)/$(BINDIR)/scantopdfgray: \
@@ -60,8 +59,7 @@ $(PACKAGEDIR)/$(BINDIR)/scantopdfgray: \
 
        mkdir --parents $(@D)
        ./tools/includer $(SRCDIR)/scantopdfgray \
-               | sed "s/@VERSION@/$(VERSION)/" \
-               > $(@)
+               | sed "s/@VERSION@/$(VERSION)/" > $(@)
        chmod 755 $(@)
 
 $(PACKAGEDIR)/$(BINDIR)/scantopdfbw: \
@@ -69,29 +67,26 @@ $(PACKAGEDIR)/$(BINDIR)/scantopdfbw: \
 
        mkdir --parents $(@D)
        ./tools/includer $(SRCDIR)/scantopdfgray \
-               | sed "s/@VERSION@/$(VERSION)/" \
-               > $(@)
+               | sed "s/@VERSION@/$(VERSION)/" > $(@)
        chmod 755 $(@)
 
 $(PACKAGEDIR)/$(BINDIR)/addocr:
 
        mkdir --parents $(@D)
        ./tools/includer $(SRCDIR)/addocr \
-               | sed "s/@VERSION@/$(VERSION)/" \
-               > $(@)
+               | sed "s/@VERSION@/$(VERSION)/" > $(@)
        chmod 755 $(@)
 
 $(PACKAGEDIR)/$(BINDIR)/addkeywords:
 
        mkdir --parents $(@D)
        ./tools/includer $(SRCDIR)/addkeywords \
-               | sed "s/@VERSION@/$(VERSION)/" \
-               > $(@)
+               | sed "s/@VERSION@/$(VERSION)/" > $(@)
        chmod 755 $(@)
 
 ################################################################################
 
-$(PACKAGEDIR)/$(SHAREDIR)/scantopdf/cutpage.html:
+$(PACKAGEDIR)/$(SHAREDIR)/cutpage.html:
 
        mkdir --parents $(@D)
        cp $(SRCDIR)/cutpage.html $(@)
@@ -102,22 +97,27 @@ $(PACKAGEDIR)/DEBIAN/control:
 
        mkdir --parents $(@D)
        cat $(SRCDIR)/debian/control    \
-               | sed "s/@VERSION@/$(VERSION)/" \
-               > $(@)
+               | sed "s/@VERSION@/$(VERSION)/" > $(@)
 
-$(PACKAGEDIR)/$(SHAREDIR)/scantopdf/copyright:
+$(PACKAGEDIR)/$(SHAREDIR)/copyright:
 
        mkdir --parents $(@D)
        cp $(SRCDIR)/debian/copyright $(@)
 
+$(PACKAGEDIR)/$(SHAREDIR)/changelog.gz:
+
+       mkdir --parents $(@D)
+       gzip --stdout --no-name --best $(SRCDIR)/debian/changelog > $(@)
+
 $(BUILDDIR)/$(PACKAGENAME).deb: \
        $(PACKAGEDIR)/$(BINDIR)/scantopdf \
        $(PACKAGEDIR)/$(BINDIR)/scantopdfgray \
        $(PACKAGEDIR)/$(BINDIR)/scantopdfbw \
        $(PACKAGEDIR)/$(BINDIR)/addocr \
        $(PACKAGEDIR)/$(BINDIR)/addkeywords \
-       $(PACKAGEDIR)/$(SHAREDIR)/scantopdf/cutpage.html \
-       $(PACKAGEDIR)/$(SHAREDIR)/scantopdf/copyright \
+       $(PACKAGEDIR)/$(SHAREDIR)/cutpage.html \
+       $(PACKAGEDIR)/$(SHAREDIR)/copyright \
+       $(PACKAGEDIR)/$(SHAREDIR)/changelog.gz \
        $(PACKAGEDIR)/DEBIAN/control
 
        mkdir --parents $(@D)
diff --git a/src/debian/changelog b/src/debian/changelog
new file mode 100644 (file)
index 0000000..9499384
--- /dev/null
@@ -0,0 +1,20 @@
+scantopdf (1.1.5) stable; urgency=low
+
+  * change cut with ocr
+  * add includer for build
+  * add builder for dep package
+
+ -- Bastian Dehn <hhaalo@arcor.de>  Thu, 14 May 2026 09:36:07 +0200
+
+scantopdf (1.1.0) stable; urgency=low
+
+  * add keywords
+  * add bats tests
+
+ -- Bastian Dehn <hhaalo@arcor.de>  Tue, 22 Jul 2025 19:20:30 +0200
+
+scantopdf (1.0.0) stable; urgency=low
+
+  * initial release
+
+ -- Bastian Dehn <hhaalo@arcor.de>  Sun, 22 Dec 2024 12:41:23 +0200