summaryrefslogtreecommitdiff
path: root/packaging/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Makefile')
-rw-r--r--packaging/Makefile20
1 files changed, 0 insertions, 20 deletions
diff --git a/packaging/Makefile b/packaging/Makefile
deleted file mode 100644
index c43542f9..00000000
--- a/packaging/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-PKG_NAME := git-buildpackage
-SPECFILE = $(addsuffix .spec, $(PKG_NAME))
-PKG_VERSION := $(shell grep '^Version: ' $(SPECFILE)|awk '{print $$2}')
-
-TARBALL := $(PKG_NAME)_$(PKG_VERSION).tar.gz
-
-dsc: $(TARBALL)
- $(eval MD5=$(shell md5sum $(TARBALL) | sed "s/ / $(shell stat -c '%s' $(TARBALL)) /"))
- @sed -i 's/^Version:.*/Version: $(PKG_VERSION)/' $(PKG_NAME).dsc
- @sed -i 's/ [a-f0-9]\+ [0-9]\+ $(PKG_NAME).*tar.*/ $(MD5)/' $(PKG_NAME).dsc
-
-$(TARBALL):
- @cd `git rev-parse --show-toplevel` \
- && git archive --prefix $(PKG_NAME)-$(PKG_VERSION)/ HEAD \
- | gzip > $(CURDIR)/$(TARBALL)
-
-clean:
- @rm -f $(PKG_NAME)*.tar.gz
-
-all: clean dsc