mirror of
https://git.proxmox.com/git/pmg-docs
synced 2025-08-03 21:33:30 +00:00
buildsys: only get git revision if actually used
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
0f96d2f2dd
commit
d9e641bbbb
4
Makefile
4
Makefile
@ -9,8 +9,6 @@ DSC=$(DEB_SOURCE)_$(DEB_VERSION).dsc
|
||||
GEN_PACKAGE=pmg-doc-generator
|
||||
DOC_PACKAGE=pmg-docs
|
||||
|
||||
GITVERSION:=$(shell git rev-parse HEAD)
|
||||
|
||||
GEN_DEB=$(GEN_PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||
DOC_DEB=$(DOC_PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
|
||||
|
||||
@ -147,7 +145,7 @@ api-viewer/apidoc.js: $(API_VIEWER_FILES)
|
||||
$(BUILDDIR):
|
||||
rm -rf $@ $@.tmp
|
||||
rsync -a * $@.tmp
|
||||
echo "git clone git://git.proxmox.com/git/pmg-docs.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
|
||||
echo "git clone git://git.proxmox.com/git/pmg-docs.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp/debian/SOURCE
|
||||
mv $@.tmp $@
|
||||
|
||||
.PHONY: dinstall
|
||||
|
Loading…
Reference in New Issue
Block a user