summaryrefslogtreecommitdiff
path: root/getters/ncurses.sh
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@scu.edu>2022-11-24 16:32:35 -0800
committerLouie Shprung <lshprung@scu.edu>2022-11-24 19:35:00 -0800
commit60cf749e9cb8f751346db0d378ac9ed93534db4d (patch)
tree3e4875e91a0feb9e6bda7b6461ffb4577ba870a0 /getters/ncurses.sh
First commit as mandocsets; added ncurses
Diffstat (limited to 'getters/ncurses.sh')
-rwxr-xr-xgetters/ncurses.sh12
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