Process all subdirectories of $pkgplugin as directories of plugins.

That way we don't have to change the script if we add new plugin
subdirectories.

Change-Id: Ic788807c723306e461b7c1f8721b48a46d4fff96
Reviewed-on: https://code.wireshark.org/review/25584
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-02-03 16:58:24 -08:00
parent 0c781eeef7
commit 656c42646a
1 changed files with 5 additions and 3 deletions

View File

@ -468,8 +468,10 @@ rpathify_files () {
#
rpathify_dir "$pkglib" "*.dylib"
rpathify_dir "$pkgexec" "*"
rpathify_dir "$pkgplugin/epan" "*"
rpathify_dir "$pkgplugin/wiretap" "*"
for plugindir in "$pkgplugin"/*
do
rpathify_dir "$plugindir" "*"
done
rpathify_dir "$pkgexec/extcap" "*"
}
@ -522,7 +524,7 @@ if [ -n "$CODE_SIGN_IDENTITY" ] ; then
done
echo "Signing plugins"
for plugin in $pkgplugin/epan/*.so $pkgplugin/wiretap/*.so ; do
for plugin in $pkgplugin/*/*.so ; do
codesign_file "$plugin"
done