sign-dist.sh 321 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # Script used to sign (almost) everything in the dist folder
  3. if [ ! -d dist ]; then
  4. mkdir dist
  5. fi
  6. cd dist
  7. # File to signed
  8. # MEMO: -e: regexp, -v: not matched
  9. tobe_sig=$(ls | grep -e ".tar" -e ".zip" -v ".sig")
  10. for element in ${tobe_sig}
  11. do
  12. echo "Signing" ${element}
  13. gpg --detach-sign ${element}
  14. done