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>
This commit is contained in:
Andrei Jiroh Halili 2022-12-28 12:56:21 +08:00
parent e1e9e231a9
commit 785f38b9a5
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8
7 changed files with 240 additions and 0 deletions

8
bin/sign-tarball Executable file
View file

@ -0,0 +1,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 940047813E9D641C "$project-$version.tar.gz" \
>/tmp/"$project-$version".tar.gz.sig