mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
* 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
23 lines
848 B
Bash
Executable file
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
|