summaryrefslogtreecommitdiff
path: root/getters/ncurses.sh
diff options
context:
space:
mode:
Diffstat (limited to 'getters/ncurses.sh')
-rwxr-xr-xgetters/ncurses.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/getters/ncurses.sh b/getters/ncurses.sh
index e933896..720bbb6 100755
--- a/getters/ncurses.sh
+++ b/getters/ncurses.sh
@@ -1,10 +1,22 @@
#!/usr/bin/env sh
-SOURCE="$(apt-file list ncurses-doc | grep -Eo "/usr/share/man/.*")"
+PACKAGES="ncurses-base
+ncurses-doc
+ncurses-hexedit
+ncurses-bin
+ncurses-examples
+ncurses-term"
+
DESTINATION="$(dirname "$0")/../ncurses/"
+get_source() {
+ echo "$PACKAGES" | while read -r package; do
+ apt-file list "$package" | grep -Eo "/usr/share/man/.*"
+ done
+}
+
# Copy files to source
-echo "$SOURCE" | while read -r line; do
+get_source | while read -r line; do
unset CATEGORY
CATEGORY="$(basename "$(dirname "$line")")"
mkdir -p "$DESTINATION/$CATEGORY"