]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
add proxmox-widget-toolkit-dev package
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 28 May 2021 12:13:41 +0000 (14:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 Jun 2021 11:44:37 +0000 (13:44 +0200)
used for various other packages to dev-depend on (e.g. pve-docs)
which only contains the Toolkit.js for now

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Makefile
debian/control
debian/docs [deleted file]
debian/proxmox-widget-toolkit-dev.docs [new file with mode: 0644]
debian/proxmox-widget-toolkit-dev.install [new file with mode: 0644]
debian/proxmox-widget-toolkit.docs [new file with mode: 0644]
debian/proxmox-widget-toolkit.install [new file with mode: 0644]

index c0fe06daab097a13f3a00692aafde86d816b6471..0060296534805ef7beefb320fd1095138348e8ed 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,9 @@ export DEB_VERSION_UPSTREAM_REVISION
 
 export PACKAGE=proxmox-widget-toolkit
 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
 
 export PACKAGE=proxmox-widget-toolkit
 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
-DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+WT_DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+WT_DEV_DEB=${PACKAGE}-dev_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+DEBS=${WT_DEB} ${WT_DEV_DEB}
 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
 GITVERSION:=$(shell git rev-parse HEAD)
 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
 GITVERSION:=$(shell git rev-parse HEAD)
@@ -16,10 +18,10 @@ ${BUILDDIR}:
        mv ${BUILDDIR}.tmp/ ${BUILDDIR}
 
 .PHONY: deb
        mv ${BUILDDIR}.tmp/ ${BUILDDIR}
 
 .PHONY: deb
-deb: ${DEB}
-${DEB}: ${BUILDDIR}
+deb: ${DEBS}
+${DEBS}: ${BUILDDIR}
        cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
        cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
-       lintian ${DEB}
+       lintian ${DEBS}
 
 .PHONY: dsc
 dsc: ${DSC}
 
 .PHONY: dsc
 dsc: ${DSC}
@@ -32,8 +34,9 @@ lint: ${JSSRC}
        ${MAKE} -C src lint
 
 .PHONY: upload
        ${MAKE} -C src lint
 
 .PHONY: upload
-upload: ${DEB}
-       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster
+upload: ${DEBS}
+       tar cf - ${WT_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster
+       tar cf - ${WT_DEV_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product devel --dist buster
 
 distclean: clean
 clean:
 
 distclean: clean
 clean:
@@ -42,5 +45,5 @@ clean:
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: dinstall
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: dinstall
-dinstall: ${DEB}
-       dpkg -i ${DEB}
+dinstall: ${DEBS}
+       dpkg -i ${DEBS}
index 45ca9b44bfbd0c9652b4fc93adb9d0c244b7aedb..ad88929749f099ad7452d16a87264fd2ec784184 100644 (file)
@@ -12,3 +12,10 @@ Architecture: all
 Depends: ${misc:Depends}
 Description: ExtJS Helper Classes for Proxmox 
  ExtJS Helper Classes to easy access to Proxmox APIs.
 Depends: ${misc:Depends}
 Description: ExtJS Helper Classes for Proxmox 
  ExtJS Helper Classes to easy access to Proxmox APIs.
+
+Package: proxmox-widget-toolkit-dev
+Architecture: all
+Depends: ${misc:Depends}
+Description: Development dependencies for Proxmox Projects
+ Contains some common javascript code that are dev-dependencies,
+ for various Proxmox projects.
diff --git a/debian/docs b/debian/docs
deleted file mode 100644 (file)
index 8696672..0000000
+++ /dev/null
@@ -1 +0,0 @@
-debian/SOURCE
diff --git a/debian/proxmox-widget-toolkit-dev.docs b/debian/proxmox-widget-toolkit-dev.docs
new file mode 100644 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE
diff --git a/debian/proxmox-widget-toolkit-dev.install b/debian/proxmox-widget-toolkit-dev.install
new file mode 100644 (file)
index 0000000..514d1d0
--- /dev/null
@@ -0,0 +1,2 @@
+Toolkit.js /usr/share/javascript/proxmox-widget-toolkit-dev/
+api-viewer/APIVIEWER.js /usr/share/javascript/proxmox-widget-toolkit-dev/
diff --git a/debian/proxmox-widget-toolkit.docs b/debian/proxmox-widget-toolkit.docs
new file mode 100644 (file)
index 0000000..8696672
--- /dev/null
@@ -0,0 +1 @@
+debian/SOURCE
diff --git a/debian/proxmox-widget-toolkit.install b/debian/proxmox-widget-toolkit.install
new file mode 100644 (file)
index 0000000..3c85d66
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/javascript/proxmox-widget-toolkit