cookutils rev 966
cook: copy() small improvements
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Sep 04 02:18:51 2017 +0300 (2017-09-04) |
parents | 3d56fc04b0e1 |
children | 44cab2ed0acf |
files | cook |
line diff
1.1 --- a/cook Fri Sep 01 19:57:10 2017 +0100 1.2 +++ b/cook Mon Sep 04 02:18:51 2017 +0300 1.3 @@ -1425,7 +1425,12 @@ 1.4 case $i in 1.5 @std) 1.6 while read j; do 1.7 - [ -z "$(ls "$install$j")" ] || continue 1.8 + case $j in 1.9 + # always skip empty man folders, because this will end up 1.10 + # copying all the man pages to the package 1.11 + */man/*) continue;; 1.12 + esac 1.13 + [ -z "$(ls -A "$install$j")" ] || continue 1.14 # directory $j is empty 1.15 k="$j" 1.16 # make 'ladder' from directories, from root dir to $j