summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-09-16 14:23:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-09-16 14:23:42 -0300
commita490a1bf3e668674760cdda4e46f2e472fc3460c (patch)
tree4feb42b5478cff407d37824c6c68f55a121eed7a /lib
parentae2c26a64065e48bc2f863d9f7648b7a49b072f7 (diff)
downloadkeyringer-a490a1bf3e668674760cdda4e46f2e472fc3460c.tar.gz
keyringer-a490a1bf3e668674760cdda4e46f2e472fc3460c.tar.bz2
Code cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/functions15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 22f16f8..7545a52 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -156,3 +156,18 @@ function keyringer_git_ignore {
fi
fi
}
+
+# Set needed environment variables.
+function keyringer_set_env {
+ if [ -z "$1" ]; then
+ echo "Error: missing arguments for keyringer_set_env"
+ exit 1
+ fi
+
+ ACTIONS="`dirname $0`"
+ BASENAME="`basename $0`"
+ BASEDIR="$1"
+ KEYDIR="$BASEDIR/keys"
+ RECIPIENTS="$BASEDIR/config/recipients"
+ OPTIONS="$BASEDIR/config/options"
+}