]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add control make
authorBastian Dehn <hhaalo@arcor.de>
Sun, 17 May 2026 09:41:42 +0000 (11:41 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 17 May 2026 09:41:42 +0000 (11:41 +0200)
Makefile [new file with mode: 0644]
control

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..1398e13
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+VERSION=1.0.0
+PACKAGE=simple-backup
+PACKAGENAME=$(PACKAGE)-$(VERSION)-1-x86_64
+BUILDDIR=build
+PREFIX=usr/local
+BINDIR=$(BUILD)/$(PACKAGENAME)/$(PREFIX)/bin
+
+.PHONY: all clean
+
+all: $(BUILDDIR)/DEBIAN/control
+
+clean:
+       rm -rf build
+
+$(BUILDDIR)/DEBIAN/control:
+       mkdir --parents $(@D)
+       cat control | sed "s/\$$VERSION/$(VERSION)/" > $(@)
diff --git a/control b/control
index fadf8f9ceea457fe5277dbe03377157dfd82e947..e0a7e28e6ead3ec83e47b8b164aa5e9d91559bec 100644 (file)
--- a/control
+++ b/control
@@ -1,5 +1,5 @@
 Package: simple-backup
-Version: 1.0.0
+Version: $VERSION
 Section: admin
 Priority: optional
 Architecture: x86_64