[patch master] sed version number to current commit if no tag discripe exist
Jan-Tarek Butt
tarek at ring0.de
So Aug 28 23:29:28 CEST 2016
FYI
On 08/28/16 23:27, Jan-Tarek Butt wrote:
> ---
> buildscript | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/buildscript b/buildscript
> index 53985c4..5a23037 100755
> --- a/buildscript
> +++ b/buildscript
> @@ -192,6 +192,9 @@ prebuild() {
>
> #insert actual firware version informations into release file
> version=$(git describe --tags --dirty)
> + if [ $? -ne 0 ]; then
> + version=$(git log | grep -m 1 commit | tail -c41 | head -c7)
> + fi
> community=$(basename "$(realpath selected_community)" .cfg)
>
> {
> --
> 2.9.3
>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 801 bytes
Beschreibung: OpenPGP digital signature
URL : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160828/18455d19/attachment.sig>
Mehr Informationen über die Mailingliste franken-dev