logo

widrop

[mirror] WiDrop distribution, now defunct
commit: 807355ed8547cd107f29d470dccec2672e9340e2
parent 4ae8ff9b41cff722768d9d90551c71ff8b135109
Author: Mathieu Goessens <mathieu@breizh-entropy.org>
Date:   Mon, 24 Dec 2012 09:27:53 +0100

Add some messages in ./src/gpg/build

Diffstat:

Msrc/gpg/build.sh27++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/src/gpg/build.sh b/src/gpg/build.sh @@ -5,21 +5,34 @@ path=~/.widrop-gpg echo path=$path [[ ! -d $path ]] && ( - echo Widrop: Creating the dir $path + echo ---------------------------------------- + echo [Widrop]: Creating the dir $path + echo ---------------------------------------- mkdir $path chmod 700 $path ) [[ ! -f $path/pubring.gpg || ! -f $path/secring.gpg ]] && ( - echo Widrop: Creating gpg keys + echo ---------------------------------------- + echo [Widrop]: Creating gpg keys + echo ---------------------------------------- gpg --homedir $path --gen-key key=$(gpg --homedir ~/.widrop-gpg --list-keys 2>/dev/null | grep pub | awk '{print $2}' | awk -F"/" '{print $2}') - echo Widrop: key $key generated - echo Widrop: Creating revocation key + echo ---------------------------------------- + echo [Widrop]: key $key generated + echo [Widrop]: Creating revocation key + echo ---------------------------------------- gpg --homedir $path --armor --output $path/revoke.gpg --gen-revoke $key - echo Widrop: Exporting public key + echo ---------------------------------------- + echo [Widrop]: Exporting public key + echo ---------------------------------------- gpg --homedir $path --export -armor --output $path/pubkey.gpg - cp $path/pubkey.gpg dist/ - echo Widrop: done + cp $p ath/pubkey.gpg dist/ + echo ---------------------------------------- + echo [Widrop]: done + echo [Widrop]: keyring stored in $path + echo [Widrop]: pubkey available in dist/pubkey.gpg + echo [Widrop]: use ./sign.sh to sign packages + echo ---------------------------------------- )