mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
added a script to make tarball releases.
This commit is contained in:
parent
6ecc3182da
commit
16beed0969
1 changed files with 19 additions and 0 deletions
19
makedist
Executable file
19
makedist
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
# Makes a tarball release
|
||||
|
||||
ver=$(grep "const char.*Version" espeakup.c)
|
||||
ver=${ver%\"*}
|
||||
ver=${ver#*\"}
|
||||
|
||||
PREFIX=espeakup-${VER}
|
||||
REL=${1:-v${VER}}
|
||||
|
||||
TIMESTAMP=
|
||||
if [ "$REL" != "v${VER}" ]; then
|
||||
TIMESTAMP="_p`date +%Y%m%d`"
|
||||
fi
|
||||
|
||||
TARFILE=${PREFIX}${TIMESTAMP}.tar.bz2
|
||||
|
||||
git archive --format=tar --prefix=${PREFIX}/ $REL | bzip2 > ${TARFILE}
|
||||
echo "Produced ${TARFILE}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue