summaryrefslogtreecommitdiff
path: root/dtools/bin/make-upload
blob: 967dcfa1e658024cc68d05109a186ec2d7e532f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

read -s -p "GPG Passphrase: " passphrase

for file in "$@"
do
  (
    echo "version: 1.1"
    echo "directory: gnuradio"
    echo "filename: $file"
  )> $file.directive
  echo "$passphrase" | gpg --passphrase-fd 0 --clearsign $file.directive
  rm $file.directive
  echo "$passphrase" | gpg --passphrase-fd 0 -b $file
done
passphrase="XYZabcdefhghakdsj;lasjdf;ajfdiuiwjr;lajv;laoisfuaoieurlkajdsflkajsdfoiuew"