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
13 UPSTREAMSRC
=$(UPSTREAM
)-$(UPSTREAMTAG
)
20 $(BUILDDIR
): .any-eslint-js
25 echo
"git clone git://git.proxmox.com/git/pve-eslint.git\\ngit checkout $(GITVERSION)" > $@.tmp
/debian
/SOURCE
30 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-uc
-us
35 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-uc
-us
45 rm -rf
$(UPSTREAM
).tmp
$(UPSTREAM
)
46 git clone
-b
$(UPSTREAMTAG
) --depth
1 https
://github.com
/eslint
/eslint
$(UPSTREAM
).tmp
47 rm -rf
$(UPSTREAM
).tmp
/.git
48 find
$(UPSTREAM
).tmp
/ -type f
-name
'.gitignore' -delete
49 mv
$(UPSTREAM
).tmp
$(UPSTREAM
)
51 .PHONY
: vendor-upstream
53 rm -rf
$(UPSTREAMSRC
) src
/lib
/eslint.js
54 $(MAKE
) src
/lib
/eslint.js
57 [ -e src
/lib
/eslint.js
] ||
$(MAKE
) src
/lib
/eslint.js
60 src
/lib
/eslint.js
: $(UPSTREAMSRC
)/build
/eslint.js
61 cp
$(UPSTREAMSRC
)/build
/eslint.js src
/lib
/eslint.js
63 $(UPSTREAMSRC
)/build
/eslint.js
: $(UPSTREAMSRC
)
64 # NOTE: needs npm installed, downloads packages from npm
65 cd
$(UPSTREAMSRC
); npm
install
66 cd
$(UPSTREAMSRC
); npm run build
:webpack
68 $(UPSTREAMSRC
): $(UPSTREAM
) patches
71 rsync
-ra
$(UPSTREAM
)/ $@.tmp
72 cd
$@.tmp
; ln
-s ..
/patches patches
73 cd
$@.tmp
; quilt push
-a
74 cd
$@.tmp
; rm -rf .
pc .
/patches
78 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
80 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product devel
--dist $(UPLOAD_DIST
)
87 rm -rf
*~ debian
/*~
*.deb
$(BUILDSRC
) *.tmp
/ $(BUILDDIR
) *.changes
*.
tar.gz
*.dsc
*.buildinfo