flatten the documentation directory - iomenu - interactive terminal-based selection menu HTML git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit f099742c20929af4c304bb477ad8ec42e0bb6f17 DIR parent 12cf2f8a793c851de5582740195923d46db4da4c HTML Author: Josuah Demangeon <me@josuah.net> Date: Tue, 27 Oct 2020 08:57:21 +0100 flatten the documentation directory Diffstat: M Makefile | 9 +++------ T README | 0 D doc/index.md | 20 -------------------- R doc/iomenu.1 -> iomenu.1 | 0 4 files changed, 3 insertions(+), 26 deletions(-) --- DIR diff --git a/Makefile b/Makefile @@ -3,13 +3,10 @@ VERSION = 0.1 SRC = src/utf8.c src/log.c src/mem.c src/compat/strcasestr.c \ src/compat/strsep.c src/compat/strlcpy.c src/compat/wcwidth.c src/term.c - HDR = src/mem.h src/compat.h src/log.h src/term.h src/utf8.h - BIN = iomenu - +MAN1 = ${BIN:=.1} OBJ = ${SRC:.c=.o} - LIB = W = -Wall -Wextra -std=c99 --pedantic @@ -37,9 +34,9 @@ install: mkdir -p ${DESTDIR}${PREFIX}/bin cp -rf bin/* ${BIN} ${DESTDIR}${PREFIX}/bin mkdir -p ${DESTDIR}${MANPREFIX}/man1 - cp -rf doc/*.1 ${DESTDIR}${MANPREFIX}/man1 + cp -rf ${MAN1} ${DESTDIR}${MANPREFIX}/man1 dist: clean mkdir -p ${NAME}-${VERSION} - cp -r README Makefile doc ${SRC} ${NAME}-${VERSION} + cp -r README Makefile ${MAN1} ${SRC} ${NAME}-${VERSION} tar -cf - ${NAME}-${VERSION} | gzip -c >${NAME}-${VERSION}.tar.gz DIR diff --git a/README b/README DIR diff --git a/doc/index.md b/doc/index.md @@ -1,20 +0,0 @@ -iomenu -================================================================================ - -*iomenu* is an interactive menu inspired from dmenu [1]: it reads lines from -stdin display them to the screen [1], and filter them as the user type. When -`Enter` is pressed, the selected line is printed to stdout. - -This permits to build interactive menu with shell pipes. As an example, a poor -man's music player could be done this way: - - $ find ~/music -name '*.flac' | iomenu | xargs mplayer - -It will print all the FLAC files in `~/music` to iomenu which shows a fulscreen -menu, and the selected file will be printed to xargs mplayer. - -iomenu does not use ncurses but ansi escape sequences [2] instead so it does -not have dependencies beyond a C compiler. - -[1]: https://tools.suckless.org/dmenu -[2]: https://en.wikipedia.org/wiki/ANSI_escape_code DIR diff --git a/doc/iomenu.1 b/iomenu.1