summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-01 16:43:03 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-01 16:43:03 +0200
commit4b68ac995a5d4c3a6e05cb0d4c0e75e4f4abe9b7 (patch)
tree288f5b96a4938c531df4e37f8a8812d1f5800436
parent94ec571623329e1cd13a4f95220dcaeefb4a3d8d (diff)
Added documentation for envify
-rw-r--r--Makefile14
-rw-r--r--man/1/envify21
2 files changed, 32 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f6927fe..124ea84 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,29 @@
prefix ?= /usr/local
+manuals: build/envstore.1 build/envify.1
+
build/envstore.1: bin/envstore
mkdir -p build
pod2man $< > $@
-install: build/envstore.1
+build/envify.1: man/1/envify
+ mkdir -p build
+ pod2man $< > $@
+
+install: manuals
mkdir -p $(prefix)/bin $(prefix)/share/man/man1
cp bin/envstore $(prefix)/bin/envstore
cp bin/envify $(prefix)/bin/envify
cp build/envstore.1 $(prefix)/share/man/man1/envstore.1
+ cp build/envify.1 $(prefix)/share/man/man1/envify.1
uninstall:
rm -f $(prefix)/bin/envstore
rm -f $(prefix)/bin/envify
- rm -f $(prefix)/share/man/man1/envstore
+ rm -f $(prefix)/share/man/man1/envstore.1
+ rm -f $(prefix)/share/man/man1/envify.1
clean:
rm -rf build
-.PHONY: install uninstall clean
+.PHONY: install manuals uninstall clean
diff --git a/man/1/envify b/man/1/envify
new file mode 100644
index 0000000..3f57be7
--- /dev/null
+++ b/man/1/envify
@@ -0,0 +1,21 @@
+=pod
+
+=head1 NAME
+
+envify - execute a command in the environment saved with envstore
+
+=head1 SYNOPSIS
+
+B<envify> I<command>...
+
+=head1 DESCRIPTION
+
+B<envify> loads the environment saved by B<envstore> and then executed I<command>.
+
+=head1 SEE ALSO
+
+envstore(1)
+
+=cut
+
+vim:ft=pod