[go: up one dir, main page]

File: makedist

package info (click to toggle)
speakup 3.1.6.dfsg.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 572 kB
  • ctags: 1,534
  • sloc: ansic: 8,258; sh: 291; makefile: 10
file content (17 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# Makes a tarball release

SPKVER=$(./version)
PREFIX=speakup-${SPKVER}
REL=${1:-v${SPKVER}}

if [ "$REL" != "v${SPKVER}" ]; then
	TIMESTAMP=$(git show $REL --pretty=format:%ai | head -1)
	PATCHLEVEL=$(date --utc -d "$TIMESTAMP" +_p%Y%m%d%H%M)
fi

TARFILE=${PREFIX}${PATCHLEVEL}.tar

git archive --prefix=${PREFIX}/ $REL -o ${TARFILE}
bzip2 ${TARFILE}
echo "Produced ${TARFILE}.bz2"