fix unpack-sources to not require GNU find

This makes bin/unpack-sources work on systems that do not have
GNU coreutils in PATH, such as macOS.

Change-Id: I54ed219eedf0f45c039edb6e486f3afe273dd51f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107936
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
This commit is contained in:
Andrew Udvare 2020-12-18 03:23:37 -05:00 committed by Thorsten Behrens
parent a01ae07740
commit f3b7dc649b

View file

@ -85,7 +85,7 @@ for tarball in $tarballs ; do
fi fi
# create symlinks for module directories; ignore git-hooks directory # create symlinks for module directories; ignore git-hooks directory
for dir in `find "$lo_src_dir/$tarname" -mindepth 1 -maxdepth 1 -type d -path $lo_src_dir/$tarname/git-hooks -o -printf "$tarname/%f\n"` ; do while read -r dir; do
ln -sf "src/$dir" "$start_dir" ln -sf "src/${tarname}/$(basename "$dir")" "$start_dir"
done done < <(find "$lo_src_dir/$tarname" -mindepth 1 -maxdepth 1 -type d -path $lo_src_dir/$tarname/git-hooks)
done done