1 include /usr
/share
/dpkg
/pkg-info.mk
5 GITVERSION
:=$(shell git rev-parse HEAD
)
6 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
8 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
9 DSC
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
14 BUILDSRC
=$(UPSTREAM
)-$(UPSTREAMTAG
)
19 .PHONY
: dsc deb builddir
23 rm -rf
$(BUILDDIR
).tmp
$(BUILDDIR
)
25 cp
-a debian
$(BUILDDIR
).tmp
/
26 cp
-a
$(SRCDIR
)/* $(BUILDDIR
).tmp
/
27 echo
"git clone git://git.proxmox.com/git/pve-eslint.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
).tmp
/debian
/SOURCE
28 mv
$(BUILDDIR
).tmp
$(BUILDDIR
)
33 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
38 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
44 rm -rf
$(UPSTREAM
).tmp
$(UPSTREAM
)
45 git clone
-b
$(UPSTREAMTAG
) --depth
1 https
://github.com
/eslint
/eslint
$(UPSTREAM
).tmp
46 rm -rf
$(UPSTREAM
).tmp
/.git
47 find
$(UPSTREAM
).tmp
/ -type f
-name
'.gitignore' -delete
48 mv
$(UPSTREAM
).tmp
$(UPSTREAM
)
50 # NOTE: needs npm installed, downloads packages from npm
52 buildupstream
: $(BUILDSRC
)
53 cp
$(BUILDSRC
)/build
/eslint.js
$(SRCDIR
)/lib
/eslint.js
55 $(BUILDSRC
): $(UPSTREAM
) patches
58 rsync
-ra
$(UPSTREAM
)/ $@.tmp
59 cd
$@.tmp
; ln
-s ..
/patches patches
60 cd
$@.tmp
; quilt push
-a
61 cd
$@.tmp
; rm -rf .
pc .
/patches
64 cd
$@
; npm run build
:webpack
68 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product devel
--dist bullseye
75 rm -rf
*~ debian
/*~
*.deb
$(BUILDSRC
) *.tmp
/ $(BUILDDIR
) *.changes
*.
tar.gz
*.dsc
*.buildinfo