summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-17 20:09:25 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-17 20:09:25 +0200
commit81dfdb2cb17607ce1b437a5e5ea6576bbf3ae8d4 (patch)
tree21df4e1f99a66e0ae67d14b1c4538b8bf2ca4da5 /bin
parentd984099db18a8235e4e08278bd53ff79052770f9 (diff)
Added manual to perl file
Diffstat (limited to 'bin')
-rwxr-xr-xbin/envstore40
1 files changed, 40 insertions, 0 deletions
diff --git a/bin/envstore b/bin/envstore
index 289777b..5c27b22 100755
--- a/bin/envstore
+++ b/bin/envstore
@@ -92,3 +92,43 @@ if ($action eq 'save') {
print STDERR "Usage: envstore <save|eval|show|rm|clear> [args]\n";
exit(1);
}
+__END__
+
+=head1 NAME
+
+envstore - save and restore environment variables
+
+=head1 SYNOPSIS
+
+B<envstore> I<command> [ I<arguments> ]
+
+=head1 DESCRIPTION
+
+envstore can safe and restore environment variables, thus transferring them
+between different shells.
+
+I<command> must be one of
+
+=over
+
+=item B<clear>
+
+Forget all stored variables
+
+=item B<eval>
+
+Produce shell code for evaluation, restoring all saved variables
+
+=item B<save> I<variable>[=I<value>]
+
+Save I<variable> either with it's current shell value or with I<value>
+
+=item B<show>
+
+List saved variables in better readable format
+
+=item B<rm> I<variable>
+
+Remove I<variable> from store
+
+=back