mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 07:30:40 +00:00
use git rev-parse for repoid
instead of getting the repoid from .git/refs/heads/master using HEAD as commit also means we get the correct commit hash for when building the package (e.g. when building from stable-4) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
0b142737f7
commit
fcd3cdd5d6
@ -14,7 +14,7 @@ PERLSOURCE = \
|
|||||||
|
|
||||||
all: pvecfg.pm ${SUBDIRS}
|
all: pvecfg.pm ${SUBDIRS}
|
||||||
|
|
||||||
REPOID=`../repoid.pl ../.git`
|
REPOID=$(shell git rev-parse --short HEAD)
|
||||||
|
|
||||||
pvecfg.pm: pvecfg.pm.in
|
pvecfg.pm: pvecfg.pm.in
|
||||||
sed -e s/@VERSION@/${VERSION}/ -e s/@PACKAGERELEASE@/${PACKAGERELEASE}/ -e s/@PACKAGE@/${PACKAGE}/ -e s/@REPOID@/${REPOID}/ $< >$@.tmp
|
sed -e s/@VERSION@/${VERSION}/ -e s/@PACKAGERELEASE@/${PACKAGERELEASE}/ -e s/@PACKAGE@/${PACKAGE}/ -e s/@REPOID@/${REPOID}/ $< >$@.tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user