diff options
author | Louie Shprung <lshprung@scu.edu> | 2022-11-24 16:32:35 -0800 |
---|---|---|
committer | Louie Shprung <lshprung@scu.edu> | 2022-11-24 19:35:00 -0800 |
commit | 60cf749e9cb8f751346db0d378ac9ed93534db4d (patch) | |
tree | 3e4875e91a0feb9e6bda7b6461ffb4577ba870a0 /getters |
First commit as mandocsets; added ncurses
Diffstat (limited to 'getters')
-rwxr-xr-x | getters/ncurses.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |