~sircmpwn/dotfiles

ref: 6f38ca6ac3f0f8af6c735bb56bcffd94f3e31496 dotfiles/bin/sign-tarball -rwxr-xr-x 285 bytes
6f38ca6aDrew DeVault Update sign-tarball 2 months ago
                                                                                
1
2
3
4
5
6
7
8
#!/bin/sh
project="$(basename $(pwd))"
version="$(git describe)"

git archive --format=tar.gz --prefix="$project-$version/" "$version" \
	>"$project-$version.tar.gz"
gpg --detach-sign "$@" --default-key sway@cmpwn.com "$project-$version.tar.gz" \
	>/tmp/"$project-$version".tar.gz.sig