From f542f412b36b53ba2e43118e2c531264c7068ee7 Mon Sep 17 00:00:00 2001 From: josuah Date: Tue, 22 Nov 2016 13:53:50 +0100 Subject: [PATCH] Install the man page in "$PREFIX/man" --- Makefile | 10 +++++++--- README | 25 ++++++++++++++++--------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index cf85e4e..2e714b6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ -CFLAGS = -std=c89 -pedantic -Wall -Wextra -g -SRC = main.c buffer.c util.c draw.c input.c -OBJ = ${SRC:.c=.o} +CFLAGS = -std=c89 -pedantic -Wall -Wextra -g +SRC = main.c buffer.c util.c draw.c input.c +OBJ = ${SRC:.c=.o} + +MANPREFIX = $(PREFIX) all: clean iomenu @@ -15,4 +17,6 @@ clean: rm -f iomenu ${OBJ} install: iomenu + mkdir -p $(PREFIX)/bin $(MANPREFIX)/man/man1 cp iomenu $(PREFIX)/bin/iomenu + cp iomenu.1 $(MANPREFIX)/man/man1/iomenu.1 diff --git a/README b/README index d5a8c89..1b8a83c 100644 --- a/README +++ b/README @@ -1,10 +1,10 @@ - * + . , ,--. --.-. ,--. ---. , , | | | | | | |--' | | | | - ' `--' ' ' ' `--' ' ' `--` + ' `--' ' ' ' `--' ' ' `--' -------------------------------------------------------------------------------- - IOMENU 2016-10-29 +iomenu 2016-11-22 -------------------------------------------------------------------------------- Filter lines form stdin with an interactive menu @@ -50,36 +50,43 @@ Open a bookmark from a list in a text file Go to a subdirectory """ - cd $(find . -type d | iomenu) + cd "$(find . -type d | iomenu)" """ Edit a file located in ~ """ - $EDITOR $(find -type f | iomenu) + $EDITOR "$(find -type f | iomenu)" """ Play an audio file """ - mplayer $(find ~/Music | iomenu) + mplayer "$(find ~/Music | iomenu)" """ Select a background job to attach to """ - fg %$(jobs | iomenu | cut -c 2) + fg "%$(jobs | iomenu | cut -c 2)" + """ + + +Filter "ps" output and print a process ID + + """ + { printf '#'; ps ax; } | iomenu -s '#' | sed -r 's/ *([0-9]*).*/\1/' """ Resources useful for iomenu developement -------------------------------------------------------------------------------- - Thank you to the authors of dmenu [1], sandy [2], vis-menu[3], - pep[4], ... that taught me C by writing some. + Thanks to the authors of dmenu [1], sandy [2], vis-menu[3], pep[4], ... + that taught me C by writing some. -------------------------------------------------------------------------------- -- 2.11.4.GIT