moderncv/create-release-tarball.sh
daniel 8076b77366
Prepare v2.5.1 release (#266)
* preparations for v2.5.1: set correct copyright date, fix missing comments on userguide.tex

* sets the version for CHANGELOG

* comment in order to check the comments/headers beforehand

* omits .codespellrc in final release tarball

* fixes wrong paths for upload, investigation of failed push
2026-01-31 13:06:35 +01:00

23 lines
848 B
Bash
Executable file

#!/bin/sh
# script to create a tarball for the files that should be in the CTAN upload
#
# do not forget to replace comments/headers beforehand
# 1. date and version in moderncv_userguide.tex
# 2. find . -type f -exec sed -i 's/$OLD_DATE $OLD_VERSION/$NEW_DATE $NEW_VERSION/g' {} \;
# 3. find . -type f -exec sed -i 's|-$OLD_YEAR moderncv maintainers (github.com/moderncv)|-$NEW_YEAR moderncv maintainers (github.com/moderncv)|g' {} \;
# 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 moderncv/.codespellrc
# compress
gzip $TARBALL