diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-06-05 12:36:47 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-06-05 12:36:47 +0200 |
commit | 832e27bbe8a82ad46ba2d3ea9550728751e79b99 (patch) | |
tree | e667e13b704229a3c811f1b8d5da8d39fac45884 /installer/opengnsys_makecompress.sh | |
parent | 228dd16463fb5e095869246963808ff9b9a40de9 (diff) |
#840: Adaptar valor de revisión según fecha y parte del commit de Git en instalador y actualizador; continuar sustituyendo URLs de Git.
Diffstat (limited to 'installer/opengnsys_makecompress.sh')
-rwxr-xr-x | installer/opengnsys_makecompress.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/installer/opengnsys_makecompress.sh b/installer/opengnsys_makecompress.sh index 0fbec746..5c8aa729 100755 --- a/installer/opengnsys_makecompress.sh +++ b/installer/opengnsys_makecompress.sh @@ -24,7 +24,7 @@ done BRANCH="devel" CODE_URL="https://codeload.github.com/opengnsys/OpenGnsys/zip/$BRANCH" API_URL="https://api.github.com/repos/opengnsys/OpenGnsys/branches/$BRANCH" -REVISION=$(curl -s "$API_URL" | jq -r ".commit.commit.committer.date" | awk '{gsub(/[^0-9]/,""); print}') +REVISION=$(curl -s "$API_URL" | jq -r '"r" + (.commit.commit.committer.date | gsub("-"; "")[:8]) + "." + (.commit.sha[:7])') # Descargar repositorio SVN cd /tmp @@ -36,7 +36,7 @@ chown -R root.root opengnsys WARNING=$? # Parchear datos de revisión del código. -perl -pi -e "s/$/ $REVISION/" opengnsys/doc/VERSION.txt +sed -ri "s/$/ $REVISION/" opengnsys/doc/VERSION.txt # Generar fichero comprimido. VERSION=$(awk '{print $2"-"$3}' opengnsys/doc/VERSION.txt) |