-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add comments, use long-name args, don't print debug info (#2)
* add comments, use long-name args, don't print debug info * be agnostic about where it's run from
- Loading branch information
Showing
2 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file was deleted.
Oops, something went wrong.