Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
add maketar.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Friedrich committed Aug 30, 2013
1 parent 9b90a02 commit 82f95e5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions maketar.sh
@@ -0,0 +1,19 @@
#!/bin/bash
###
# Make a tarball
# (c) 2013 NETWAYS GmbH
# by Markus Frosch <markus.frosch@netways.de
###

set -e

name=`basename *.spec .spec`
version=`git describe --tags HEAD | sed 's/^v//'`
filename="$name-$version"

git archive --worktree-attributes \
-o "../${filename}.tar.gz" \
--prefix="$filename/" HEAD

echo "created ../${filename}.tar.gz"

0 comments on commit 82f95e5

Please sign in to comment.