]>
Commit | Line | Data |
---|---|---|
a8d28335 | 1 | RELEASE=3.4 |
46f93004 DM |
2 | |
3 | PACKAGE=pve-jslint | |
4 | VERSION=1.0 | |
a8d28335 | 5 | PACKAGERELEASE=4 |
46f93004 DM |
6 | |
7 | PKGREL=${VERSION}-${PACKAGERELEASE} | |
be500ccc | 8 | DEB=${PACKAGE}_${PKGREL}_all.deb |
0fe26c62 | 9 | GITVERSION:=$(shell cat .git/refs/heads/master) |
46f93004 DM |
10 | |
11 | all: ${DEB} | |
12 | ||
13 | .PHONY: dinstall | |
14 | dinstall: ${DEB} | |
15 | dpkg -i ${DEB} | |
16 | ||
56406e70 FG |
17 | .PHONY: deb |
18 | deb: ${DEB} | |
19 | ${DEB}: | |
46f93004 DM |
20 | make clean |
21 | rm -rf dest | |
22 | mkdir dest | |
23 | make DESTDIR=`pwd`/dest install | |
24 | mkdir dest/DEBIAN | |
25 | sed -e 's/@PKGREL@/${PKGREL}/' <control.in >dest/DEBIAN/control | |
26 | mkdir -p dest/usr/share/doc/${PACKAGE} | |
0fe26c62 | 27 | echo "git clone git://git.proxmox.com/git/pve-jslint.git\\ngit checkout ${GITVERSION}" > dest/usr/share/doc/${PACKAGE}/SOURCE |
46f93004 DM |
28 | install -m 0644 copyright dest/usr/share/doc/${PACKAGE} |
29 | install -m 0644 changelog.Debian dest/usr/share/doc/${PACKAGE} | |
838549fe | 30 | gzip -n --best dest/usr/share/doc/${PACKAGE}/changelog.Debian |
926279b7 | 31 | fakeroot dpkg-deb --build dest |
46f93004 DM |
32 | mv dest.deb ${DEB} |
33 | rm -rf dest | |
dbdde453 | 34 | lintian ${DEB} |
46f93004 DM |
35 | |
36 | rhinoed_jslint.js: jslint.js rhino.js | |
37 | cat jslint.js rhino.js >$@.tmp | |
38 | mv $@.tmp $@ | |
39 | ||
40 | install: rhinoed_jslint.js jslint | |
41 | mkdir -p ${DESTDIR}/usr/share/${PACKAGE} | |
42 | install -m 0644 rhinoed_jslint.js ${DESTDIR}/usr/share/${PACKAGE}/rhinoed_jslint.js | |
43 | mkdir -p ${DESTDIR}/usr/bin | |
3949f34e | 44 | install -m 0755 jslint ${DESTDIR}/usr/bin |
46f93004 DM |
45 | |
46 | jslint.js download: | |
47 | wget -O jslint.js http://jslint.com/jslint.js | |
48 | ||
49 | .PHONY: distclean | |
50 | distclean: clean | |
51 | ||
52 | .PHONY: clean | |
53 | clean: | |
54 | rm -rf *~ dest control rhinoed_jslint.js *.deb | |
55 | ||
56 | .PHONY: upload | |
57 | upload: ${DEB} | |
82f43e60 | 58 | tar -cf - ${DEB} | ssh repoman@repo.proxmox.com upload |