mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-25 01:15:51 +00:00
trivial: debian: calculate version number using git describe again
This will be more representative of what the build actually is rather than a mismarked tag. If the checkout doesn't include a tag, fallback to parsing meson.build though.
This commit is contained in:
parent
3db79f2ec2
commit
d97eb03b6b
@ -9,6 +9,7 @@ RUN apt-get install -yq --no-install-recommends \
|
||||
fontconfig-config \
|
||||
fonts-dejavu \
|
||||
gir1.2-pango-1.0 \
|
||||
git \
|
||||
gcab \
|
||||
gettext \
|
||||
gobject-introspection \
|
||||
|
@ -8,6 +8,7 @@ RUN apt-get install -yq --no-install-recommends \
|
||||
fontconfig \
|
||||
fontconfig-config \
|
||||
fonts-dejavu \
|
||||
git \
|
||||
gcab \
|
||||
gettext \
|
||||
gir1.2-appstreamglib-1.0 \
|
||||
|
@ -1,7 +1,9 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
#build deb packages
|
||||
VERSION=`head meson.build | sed "/version :/!d; /meson/d; s/,//; s/'//g;" | awk -F ':' '{print $2}'`
|
||||
VERSION=`git describe | sed 's/-/+r/;s/-/+/'`
|
||||
[ -z $VERSION ] && VERSION=`head meson.build | grep ' version :' | cut -d \' -f2`
|
||||
|
||||
rm -rf build/
|
||||
mkdir -p build && pushd build
|
||||
ln -s ../* .
|
||||
|
Loading…
Reference in New Issue
Block a user