moderncv/create-release-tarball.sh
Stephan Lachnit a2917f3533
add script to create release tarball
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2021-01-21 20:39:39 +01:00

18 lines
431 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 HEAD > $TARBALL
# remove git specific files
tar -f $TARBALL --delete .github/ .gitignore create-release-tarball.sh
# compress
gzip $TARBALL