]>
Commit | Line | Data |
---|---|---|
3ee01979 | 1 | TARVER=1.29b |
b54031c5 | 2 | DEBREL=2 |
3ee01979 | 3 | PVETARVER=${TARVER}+pve.1 |
16e13d18 DM |
4 | |
5 | # also update changelog | |
6 | ||
7 | TARSRC=tar_${TARVER}.orig.tar.xz | |
8 | TARDEBSRC=tar_${TARVER}-${DEBREL}.debian.tar.xz | |
9 | TARDIR=tar-${TARVER} | |
10 | ||
11 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
12 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
13 | SOURCETXT="git clone git://git.proxmox.com/git/tar.git\\ngit checkout ${GITVERSION}" | |
14 | ||
15 | DEB=tar_${PVETARVER}_${ARCH}.deb | |
16 | ||
17 | all: deb | |
18 | ||
19 | .PHONY: dinstall | |
c2c6e046 | 20 | dinstall: ${DEB} |
16e13d18 DM |
21 | dpkg -i ${DEB} |
22 | ||
3ee01979 WB |
23 | .PHONY: prepare |
24 | prepare: $(TARDIR) | |
25 | $(TARDIR): $(TARSRC) $(TARDEBSRC) | |
16e13d18 DM |
26 | rm -rf ${TARDIR} |
27 | tar xf ${TARSRC} | |
3ee01979 | 28 | tar -C $(TARDIR) -xf $(TARDEBSRC) |
16e13d18 DM |
29 | echo "${SOURCETXT}" > ${TARDIR}/debian/SOURCE |
30 | echo "debian/SOURCE" >>${TARDIR}/debian/docs | |
31 | mv ${TARDIR}/debian/changelog ${TARDIR}/debian/changelog.org | |
32 | cat changelog ${TARDIR}/debian/changelog.org >${TARDIR}/debian/changelog | |
3ee01979 WB |
33 | cd ${TARDIR} && patch -p1 -i ../sparse-unicode.patch |
34 | ||
35 | .PHONY: deb | |
36 | deb: $(DEB) | |
37 | $(DEB): $(TARDIR) | |
6f4636b0 | 38 | cd ${TARDIR} && dpkg-buildpackage -b --no-sign |
16e13d18 DM |
39 | |
40 | .PHONY: upload | |
3ee01979 WB |
41 | upload: $(DEB) |
42 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch | |
16e13d18 DM |
43 | |
44 | .PHONY: clean | |
45 | clean: | |
3ee01979 | 46 | rm -rf *~ *_${ARCH}.deb *_all.deb *_${ARCH}.udeb *.changes *.buildinfo *.dsc ${TARDIR} |