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
Olaf Meeuwissen 2017-07-06 20:44:32 +09:00
rodzic a5672d9bd9
commit c1b77855e4
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -16,9 +16,10 @@ archive:
- apt-get update --quiet
- apt-get install --quiet --assume-yes libsane-dev
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/^[^-]*//');
sed -i "/^V_BUILD/s/=.*/=$build/; /^V_EXTRA/s/=.*/=$extra/" configure.in
sed -i "/^V_EXTRA/s/=.*/=$extra/" configure.in
- autoconf --force
- ./configure
- make dist