blob: f5e8a2d057daf21ac5a7155d5cc2dfbc0fd51849 [file] [log] [blame]
Jakub Ružička891b73a2021-07-14 17:26:48 +02001#!/bin/bash
2# create archive from current source using git
3
4VERSION=$(git describe --tags --always)
5# skip "v" from start of version number (if it exists) and replace - with .
6VERSION=${VERSION#v}
7VERSION=${VERSION//[-]/.}
8
9NAMEVER=libnetconf2-$VERSION
10ARCHIVE=$NAMEVER.tar.gz
11
12git archive --format tgz --output $ARCHIVE --prefix $NAMEVER/ HEAD
13
14# apkg expects stdout to list archive files
15echo $ARCHIVE