diff options
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 |