mirror of
git://git.suckless.org/sbase
synced 2025-01-18 05:10:46 +00:00
scripts: Fix non-portable usage of find -maxdepth
This commit is contained in:
parent
6fc6bbbf71
commit
f496998f4f
@ -14,11 +14,11 @@ trap "rm -f scripts/proto" EXIT INT QUIT TERM
|
||||
|
||||
(set -e
|
||||
echo d $prefix/bin $prefix/bin 755
|
||||
find . -maxdepth 1 -type f -perm /111 |
|
||||
find . ! -name . -prune -type f -perm /111 |
|
||||
sed "s@.*@c & $prefix/bin/& 755@"
|
||||
|
||||
echo d $manprefix/man1 $manprefix/man1 755
|
||||
find . -maxdepth 1 -name '*.1' |
|
||||
find . ! -name . -prune -name '*.1' |
|
||||
sed "s@.*@c & $manprefix/man1/& 644@") > $proto
|
||||
|
||||
trap "" EXIT INT QUIT TERM
|
||||
|
Loading…
Reference in New Issue
Block a user