Browse Source

Add signing script

Might sign signing files (.sig.sig...), due to too large selection of files
Leo 9 years ago
parent
commit
b3b8360e49
1 changed files with 15 additions and 0 deletions
  1. 15 0
      sign-dist.sh

+ 15 - 0
sign-dist.sh

@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Script used to sign (almost) everything in the dist folder
+
+cd dist
+# File to signed
+# MEMO: -e: regexp, -v: not matched
+tobe_sig=$(ls | grep -e ".tar" -e ".zip" -v ".sig")
+
+for element in ${tobe_sig}
+do
+  echo "Signing" ${element}
+  gpg --detach-sign ${element}
+done
+