File: git-archive

package info (click to toggle)
incant 0.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,996 kB
  • sloc: python: 1,482; sh: 35; makefile: 10; ruby: 1
file content (6 lines) | stat: -rwxr-xr-x 182 bytes parent folder | download
1
2
3
4
5
6
#!/bin/bash
set -ex
V=$(git describe --tags --long | sed 's/^v//;s/-/+git/;s/-/./')
echo $V
git archive --format=tar.gz --prefix=incant-$V/ master --output=../incant_$V.orig.tar.gz