Skip to content

Commit

Permalink
add comments, use long-name args, don't print debug info (#2)
Browse files Browse the repository at this point in the history
* add comments, use long-name args, don't print debug info

* be agnostic about where it's run from
  • Loading branch information
Ravna authored Jan 9, 2024
1 parent 450666f commit 2c1b477
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 22 deletions.
29 changes: 29 additions & 0 deletions bin/sign-deb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

### This script signs a .deb. It expects that you've unzipped the artifacts-deb.zip
### file -into the .deb directory in the PPA repo-. If you're still sitting in that
### directory, it does the right thing; if you're instead at toplevel in the repo,
### it also does the right thing.
###
### The keyring with the key in it should be in a .gnupg directory and defaults to $HOME,
### but you can specify an alternate location via optional $1.

set -e

HOMEDIR="${1:-$HOME}"
KEYNAME="[email protected]"

## In a subprocess so as not to side-effect cwd.
(
# Don't fuss over where we're run from.
if [[ "$(basename "$(pwd)")" != "deb" ]]; then cd deb; fi # If this isn't right, "set -e" ensures we bail.

# Packages & Packages.gz
dpkg-scanpackages --multiversion . > Packages
gzip --keep --force Packages

# Release, Release.gpg & InRelease
apt-ftparchive release . > Release
gpg --homedir "$HOMEDIR" --default-key "${KEYNAME}" --armor --detach-sign --sign --output - Release > Release.gpg
gpg --homedir "$HOMEDIR" --default-key "${KEYNAME}" --clearsign --output - Release > InRelease
)
22 changes: 0 additions & 22 deletions bin/update.sh

This file was deleted.

0 comments on commit 2c1b477

Please sign in to comment.