2021-01-21 20:37:18 +01:00
|
|
|
#!/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
|
2021-12-19 13:43:51 +01:00
|
|
|
git archive --prefix=moderncv/ HEAD > $TARBALL
|
2021-01-21 20:37:18 +01:00
|
|
|
|
|
|
|
|
# remove git specific files
|
2021-12-19 13:43:51 +01:00
|
|
|
tar -f $TARBALL --delete moderncv/.github/ moderncv/.gitignore moderncv/create-release-tarball.sh
|
2021-01-21 20:37:18 +01:00
|
|
|
|
|
|
|
|
# compress
|
|
|
|
|
gzip $TARBALL
|