[patch master v2] sed version number to current commit if no tag describe exists

mayosemmel mayosemmel at googlemail.com
Mi Sep 28 18:40:09 CEST 2016


Hallo Tarek,

Am Samstag, den 24.09.2016, 15:28 +0200 schrieb Jan-Tarek Butt:
> ---
>  buildscript | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/buildscript b/buildscript
> index 04942e6..0c8ef05 100755
> --- a/buildscript
> +++ b/buildscript
> @@ -190,6 +190,9 @@ prebuild() {
> 
>      #insert actual firware version informations into release file
>      version=$(git describe --tags --dirty)
> +    if [ 0 -ne $? ]; then
in welcher Situation tritt es auf, das diese Variable nicht gesetzt ist
bzw. der vorherige Befehl nicht erfolgreich ist?

Grüße Jan
> +        version=$(git log -1 --pretty=format:%h)
> +    fi
>      community=$(basename "$(realpath selected_community)" .cfg)
> 
>      {
> --
> 2.10.0
> 

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 473 bytes
Beschreibung: This is a digitally signed message part
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160928/fcd182f4/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev