diff options
author | Louie Shprung <lshprung@scu.edu> | 2022-11-24 21:30:20 -0800 |
---|---|---|
committer | Louie Shprung <lshprung@scu.edu> | 2022-11-24 21:30:20 -0800 |
commit | e171faf20d04eb8302078a02ebc40dd94c86bfc8 (patch) | |
tree | eab0b557f00a008e9429201e6ac65f9c706b64d9 /getters/ncurses.sh | |
parent | 623e48251d1098007ba8a27e4bc2b7c18d39d8a3 (diff) |
Expand list of packages to look for man pages in
Diffstat (limited to 'getters/ncurses.sh')
-rwxr-xr-x | getters/ncurses.sh | 16 |
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" |