From 60cf749e9cb8f751346db0d378ac9ed93534db4d Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Thu, 24 Nov 2022 16:32:35 -0800 Subject: First commit as mandocsets; added ncurses --- getters/ncurses.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 getters/ncurses.sh (limited to 'getters/ncurses.sh') diff --git a/getters/ncurses.sh b/getters/ncurses.sh new file mode 100755 index 0000000..e933896 --- /dev/null +++ b/getters/ncurses.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh + +SOURCE="$(apt-file list ncurses-doc | grep -Eo "/usr/share/man/.*")" +DESTINATION="$(dirname "$0")/../ncurses/" + +# Copy files to source +echo "$SOURCE" | while read -r line; do + unset CATEGORY + CATEGORY="$(basename "$(dirname "$line")")" + mkdir -p "$DESTINATION/$CATEGORY" + cp "$line" "$DESTINATION/$CATEGORY" +done -- cgit