moderncv/create-release-tarball.sh
Stephan Lachnit 739d220d23
Add top-level moderncv/ folder to release tarball
Closes #89

Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
2021-12-19 13:39:49 +01:00

18 lines
477 B
Bash
Executable file

#!/bin/sh
# script to create a tarball for the files that should be in the CTAN upload
# fetch version via git
VERSION=$(git describe --tags --dirty)
TARBALL=moderncv-$VERSION.tar
# remove existing tarballs
rm -f $TARBALL $TARBALL.gz
# create tar with all files in git repo
git archive --prefix=moderncv/ HEAD > $TARBALL
# remove git specific files
tar -f $TARBALL --delete moderncv/.github/ moderncv/.gitignore moderncv/create-release-tarball.sh
# compress
gzip $TARBALL