File: source-dist.sh

package info (click to toggle)
libmbd 0.12.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 700 kB
  • sloc: f90: 7,222; python: 1,512; ansic: 127; makefile: 48; sh: 12
file content (14 lines) | stat: -rwxr-xr-x 456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -ev
VERSION=$(git describe --tags --dirty=.dirty)
VERSION_FILE=cmake/libMBDVersionTag.cmake
SLUG=libmbd-${VERSION}
echo "set(VERSION_TAG ${VERSION})">${VERSION_FILE}
mkdir -p dist
ARCHIVE=dist/${SLUG}.tar.gz
gtar -vcz -f ${ARCHIVE} \
    --exclude "*pymbd*" --exclude "__pycache__" --exclude "conftest.py" --exclude ".*" \
    --transform "s,^,${SLUG}/," CMakeLists.txt cmake src tests LICENSE README.md
rm ${VERSION_FILE}
echo ${ARCHIVE}