1
0
Fork 0
libnetconf2/distro/scripts/make-archive.sh
Daniel Baumann afb0a8fea7
Adding upstream version 2.0.24.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-18 11:18:17 +01:00

17 lines
478 B
Bash
Executable file

#!/bin/bash
# create archive from current source using git
VERSION=$(git describe --tags --always)
# skip "v" from start of version number (if it exists) and replace - with .
VERSION=${VERSION#v}
VERSION=${VERSION//[-]/.}
NAMEVER=libnetconf2-$VERSION
ARCHIVE=$NAMEVER.tar.gz
git archive --format tgz --output $ARCHIVE --prefix $NAMEVER/ HEAD
mkdir -p pkg/archives/dev/
mv $ARCHIVE pkg/archives/dev/
# apkg expects stdout to list archive files
echo pkg/archives/dev/$ARCHIVE