mirror of
https://git.proxmox.com/git/pve-jslint
synced 2025-08-11 18:13:10 +00:00
move to buildpackage
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4f226ba0d4
commit
914267a94d
34
Makefile
34
Makefile
@ -4,9 +4,16 @@ PACKAGERELEASE=5
|
|||||||
|
|
||||||
PKGREL=${VERSION}-${PACKAGERELEASE}
|
PKGREL=${VERSION}-${PACKAGERELEASE}
|
||||||
DEB=${PACKAGE}_${PKGREL}_all.deb
|
DEB=${PACKAGE}_${PKGREL}_all.deb
|
||||||
GITVERSION:=$(shell cat .git/refs/heads/master)
|
GITVERSION:=$(shell git rev-parse HEAD)
|
||||||
|
|
||||||
all: ${DEB}
|
BUILDDIR ?= ${PACKAGE}-${VERSION}
|
||||||
|
|
||||||
|
all:
|
||||||
|
|
||||||
|
${BUILDDIR}: debian
|
||||||
|
rm -rf ${BUILDDIR}
|
||||||
|
rsync -a * ${BUILDDIR}
|
||||||
|
echo "git clone git://git.proxmox.com/git/pve-jslint.git\\ngit checkout $(GITVERSION)" > ${BUILDDIR}/debian/SOURCE
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
dinstall: ${DEB}
|
dinstall: ${DEB}
|
||||||
@ -14,21 +21,8 @@ dinstall: ${DEB}
|
|||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: ${DEB}
|
deb: ${DEB}
|
||||||
${DEB}:
|
${DEB}: ${BUILDDIR}
|
||||||
make clean
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
||||||
rm -rf dest
|
|
||||||
mkdir dest
|
|
||||||
make DESTDIR=`pwd`/dest install
|
|
||||||
mkdir dest/DEBIAN
|
|
||||||
sed -e 's/@PKGREL@/${PKGREL}/' <control.in >dest/DEBIAN/control
|
|
||||||
mkdir -p dest/usr/share/doc/${PACKAGE}
|
|
||||||
echo "git clone git://git.proxmox.com/git/pve-jslint.git\\ngit checkout ${GITVERSION}" > dest/usr/share/doc/${PACKAGE}/SOURCE
|
|
||||||
install -m 0644 copyright dest/usr/share/doc/${PACKAGE}
|
|
||||||
install -m 0644 changelog.Debian dest/usr/share/doc/${PACKAGE}
|
|
||||||
gzip -n --best dest/usr/share/doc/${PACKAGE}/changelog.Debian
|
|
||||||
fakeroot dpkg-deb --build dest
|
|
||||||
mv dest.deb ${DEB}
|
|
||||||
rm -rf dest
|
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
rhinoed_jslint.js: jslint.js rhino.js
|
rhinoed_jslint.js: jslint.js rhino.js
|
||||||
@ -36,9 +30,9 @@ rhinoed_jslint.js: jslint.js rhino.js
|
|||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
install: rhinoed_jslint.js jslint
|
install: rhinoed_jslint.js jslint
|
||||||
mkdir -p ${DESTDIR}/usr/share/${PACKAGE}
|
install -d -m 0755 ${DESTDIR}/usr/share/${PACKAGE}
|
||||||
install -m 0644 rhinoed_jslint.js ${DESTDIR}/usr/share/${PACKAGE}/rhinoed_jslint.js
|
install -m 0644 rhinoed_jslint.js ${DESTDIR}/usr/share/${PACKAGE}/rhinoed_jslint.js
|
||||||
mkdir -p ${DESTDIR}/usr/bin
|
install -d -m 0755 ${DESTDIR}/usr/bin
|
||||||
install -m 0755 jslint ${DESTDIR}/usr/bin
|
install -m 0755 jslint ${DESTDIR}/usr/bin
|
||||||
|
|
||||||
jslint.js download:
|
jslint.js download:
|
||||||
@ -49,7 +43,7 @@ distclean: clean
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf *~ dest control rhinoed_jslint.js *.deb
|
rm -rf *~ ${BUILDDIR} rhinoed_jslint.js *.deb *.changes *.buildinfo
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
upload: ${DEB}
|
upload: ${DEB}
|
||||||
|
0
changelog.Debian → debian/changelog
vendored
0
changelog.Debian → debian/changelog
vendored
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
10
|
12
control.in → debian/control
vendored
12
control.in → debian/control
vendored
@ -1,10 +1,12 @@
|
|||||||
Package: pve-jslint
|
Source: pve-jslint
|
||||||
Version: @PKGREL@
|
|
||||||
Section: devel
|
Section: devel
|
||||||
Priority: optional
|
Priority: optional
|
||||||
|
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||||
|
Standards-Version: 3.9.8
|
||||||
|
|
||||||
|
Package: pve-jslint
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: rhino
|
Depends: rhino
|
||||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
|
||||||
Description: JSLint for Proxmox Virtual Environment development
|
Description: JSLint for Proxmox Virtual Environment development
|
||||||
This package contains a version of jslint used to develop the
|
This package contains a version of jslint used to develop the Proxmox Virtual
|
||||||
Proxmox Virtual Environment GUI.
|
Environment GUI.
|
0
copyright → debian/copyright
vendored
0
copyright → debian/copyright
vendored
1
debian/docs
vendored
Normal file
1
debian/docs
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
debian/SOURCE
|
7
debian/rules
vendored
Executable file
7
debian/rules
vendored
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# See debhelper(7) (uncomment to enable)
|
||||||
|
# output every command that modifies files on the build system.
|
||||||
|
#export DH_VERBOSE = 1
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.0
|
Loading…
Reference in New Issue
Block a user