[vlc-devel] [PATCH] contrib: use POSIX options for find(1)
Sean McGovern
gseanmcg at gmail.com
Fri Dec 18 01:49:48 CET 2015
-maxdepth is a GNU extension
---
contrib/src/change_prefix.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/src/change_prefix.sh b/contrib/src/change_prefix.sh
index 4363620..e3809bb 100755
--- a/contrib/src/change_prefix.sh
+++ b/contrib/src/change_prefix.sh
@@ -45,7 +45,7 @@ fi
# process [dir] [filemask] [text only]
process() {
- for file in `find $1 -maxdepth 1 -type f -name "$2"`
+ for file in `find $1 \( ! -name \`basename $1\` -o -type f \) -prune -type f -name "$2"`
do
if [ -n "$3" ]
then
--
1.7.9.2
More information about the vlc-devel
mailing list