kopia lustrzana https://gitlab.com/sane-project/frontends
CI: Split sed command to trigger a "dirty" state
There is no point in requesting a --dirty'd description when all you have is a clean checkout.merge-requests/2/head
rodzic
a5672d9bd9
commit
c1b77855e4
|
@ -16,9 +16,10 @@ archive:
|
||||||
- apt-get update --quiet
|
- apt-get update --quiet
|
||||||
- apt-get install --quiet --assume-yes libsane-dev
|
- apt-get install --quiet --assume-yes libsane-dev
|
||||||
script:
|
script:
|
||||||
- build=$(git describe --dirty --match '1.*' | sed 's/.*\.//; s/-.*//');
|
- build=$(git describe --match '1.*' | sed 's/.*\.//; s/-.*//');
|
||||||
|
sed -i "/^V_BUILD/s/=.*/=$build/" configure.in;
|
||||||
extra=$(git describe --dirty --match '1.*' | sed 's/^[^-]*//');
|
extra=$(git describe --dirty --match '1.*' | sed 's/^[^-]*//');
|
||||||
sed -i "/^V_BUILD/s/=.*/=$build/; /^V_EXTRA/s/=.*/=$extra/" configure.in
|
sed -i "/^V_EXTRA/s/=.*/=$extra/" configure.in
|
||||||
- autoconf --force
|
- autoconf --force
|
||||||
- ./configure
|
- ./configure
|
||||||
- make dist
|
- make dist
|
||||||
|
|
Ładowanie…
Reference in New Issue