mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
add script to create release tarball
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
parent
dd8045909c
commit
a2917f3533
2 changed files with 21 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -10,3 +10,6 @@
|
||||||
# template.tex output
|
# template.tex output
|
||||||
# move to *.pdf once manual is done
|
# move to *.pdf once manual is done
|
||||||
template.pdf
|
template.pdf
|
||||||
|
|
||||||
|
# release tarballs
|
||||||
|
moderncv-*.tar.gz
|
||||||
|
|
|
||||||
18
create-release-tarball.sh
Executable file
18
create-release-tarball.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue