summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile16
-rw-r--r--lsinitcpio.1.txt55
3 files changed, 69 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 3620594..aee4ba8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
mkinitcpio.8
+lsinitcpio.1
*~
*.bak
mkinitcpio-*.tar.gz
diff --git a/Makefile b/Makefile
index a81c818..81abcdd 100644
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,12 @@ DIRS = \
/usr/lib/initcpio/hooks \
/usr/lib/initcpio/install \
/usr/lib/initcpio/udev \
- /usr/share/man/man8
+ /usr/share/man/man8 \
+ /usr/share/man/man1
DIST_EXTRA = \
- mkinitcpio.8
+ mkinitcpio.8 \
+ lsinitcpio.1
all: doc
@@ -44,9 +46,10 @@ install: all
install -m644 -t ${DESTDIR}/etc/mkinitcpio.d mkinitcpio.d/*
install -m644 mkinitcpio.8 ${DESTDIR}/usr/share/man/man8/mkinitcpio.8
+ install -m644 lsinitcpio.1 ${DESTDIR}/usr/share/man/man1/lsinitcpio.1
install -m644 bash-completion ${DESTDIR}/usr/share/bash-completion/completions/mkinitcpio
-doc: mkinitcpio.8
+doc: mkinitcpio.8 lsinitcpio.1
mkinitcpio.8: mkinitcpio.8.txt Makefile
a2x -d manpage \
-f manpage \
@@ -54,6 +57,13 @@ mkinitcpio.8: mkinitcpio.8.txt Makefile
-a manversion=${VERSION} \
-a manmanual=mkinitcpio mkinitcpio.8.txt
+lsinitcpio.1: lsinitcpio.1.txt Makefile
+ a2x -d manpage \
+ -f manpage \
+ -a mansource=lsinitcpio \
+ -a manversion=${VERSION} \
+ -a manmanual=lsinitcpio lsinitcpio.1.txt
+
clean:
${RM} -r build mkinitcpio-${VERSION}
${RM} mkinitcpio-${VERSION}.tar.gz mkinitcpio.8 mkinitcpio.8.gz
diff --git a/lsinitcpio.1.txt b/lsinitcpio.1.txt
new file mode 100644
index 0000000..09ffb54
--- /dev/null
+++ b/lsinitcpio.1.txt
@@ -0,0 +1,55 @@
+/////
+vim:set ts=4 sw=4 syntax=asciidoc noet:
+/////
+lsinitcpio(1)
+=============
+
+Name
+----
+lsinitcpio - Examine an initramfs
+
+Synopsis
+--------
+'lsinitcpio' [options] 'image'
+
+Description
+-----------
+Examines the contents of an initcpio image. Without any options, 'lsinitcpio'
+simply lists the contents of an image.
+
+Options
+-------
+*-a, \--analyze*::
+ Analyze the contents of the specified image and print output in human
+ readable form.
+
+*-h, \--help*::
+ Output a short overview of available command-line switches.
+
+*-n, \--nocolor*::
+ Disable color output.
+
+*-v, \--verbose*::
+ Be more verbose. In particular, show long style output when listing
+ the contents of an image, and show files as they are extracted when
+ the *-x* option is given.
+
+*-x, \--extract*::
+ Extract the given image to the current working directory.
+
+Bugs
+----
+Upon writing this manpage, there were no noticeable bugs present. Please visit
+<http://bugs.archlinux.org/> for an up to date list.
+
+See Also
+--------
+*mkinitcpio*(8)
+
+Authors
+-------
+lsinitcpio was created by Dave Reisner <dreisner@archlinux.org>
+
+Copyright
+---------
+Copyright (c) Arch Linux