Sfoglia il codice sorgente

make set_version.sh work on mac

master
Jonathan Cobb 4 anni fa
parent
commit
f991cf5bf9
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +4
    -1
      set_version.sh

+ 4
- 1
set_version.sh Vedi File

@@ -1,7 +1,10 @@
#!/bin/bash
#
# Called by jenkins to update version.rs with the current build number
#

if [[ -z "${BUILD_NUMBER}" ]] ; then
echo "No BUILD_NUMBER environment variable was set"
exit 1
fi
sed -i "s/.DEV_BUILD/.${BUILD_NUMBER}/" src/version.rs
sed -i "s/.DEV_BUILD/\.${BUILD_NUMBER}/" src/version.rs

Caricamento…
Annulla
Salva