dotfiles/bin/sign-tarball
Andrei Jiroh Halili 785f38b9a5
feat(global): stage config and scripts to version control
Including just one script from ~sircmpwn for signing release source tarballs.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
2022-12-28 12:56:21 +08:00

8 lines
287 B
Bash
Executable file

#!/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 940047813E9D641C "$project-$version.tar.gz" \
>/tmp/"$project-$version".tar.gz.sig