Blame osxpostbuild.sh

Packit Service 17f749
#!/bin/bash
Packit Service 17f749
# ************************************************************************************
Packit Service 17f749
#   Copyright (C) 2020 MariaDB Corporation AB
Packit Service 17f749
#   
Packit Service 17f749
#   This library is free software; you can redistribute it and/or
Packit Service 17f749
#   modify it under the terms of the GNU Library General Public
Packit Service 17f749
#   License as published by the Free Software Foundation; either
Packit Service 17f749
#   version 2.1 of the License, or (at your option) any later version.
Packit Service 17f749
#   
Packit Service 17f749
#   This library is distributed in the hope that it will be useful,
Packit Service 17f749
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 17f749
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 17f749
#   Library General Public License for more details.
Packit Service 17f749
#   
Packit Service 17f749
#   You should have received a copy of the GNU Library General Public
Packit Service 17f749
#   License along with this library; if not see <http://www.gnu.org/licenses>
Packit Service 17f749
#   or write to the Free Software Foundation, Inc., 
Packit Service 17f749
#   51 Franklin St., Fifth Floor, Boston, MA 02110, USA
Packit Service 17f749
# *************************************************************************************/
Packit Service 17f749
Packit Service 17f749
set -x
Packit Service 17f749
echo $1
Packit Service 17f749
LinkedLibName=`otool -L $1 | grep -i iodbcinst | sed 's/	//' | sed 's/ [(].*$//'`
Packit Service 17f749
install_name_tool -change $LinkedLibName @rpath/libiodbcinst.dylib $1
Packit Service 17f749
LinkedLibName=`otool -L $1 | grep -i libgnutls | sed 's/	//' | sed 's/ [(].*$//'`
Packit Service 17f749
if [ $LinkedLibName ] ; then
Packit Service 17f749
  LinkedLibFileName=`echo $LinkedLibName | sed 's/.*[/]//'`
Packit Service 17f749
  install_name_tool -change $LinkedLibName @rpath/$LinkedLibFileName $1
Packit Service 17f749
fi
Packit Service 17f749
Packit Service 17f749
#LinkedLibName=`otool -L $1 | grep -i libcrypto | sed 's/	//' | sed 's/ [(].*$//'`
Packit Service 17f749
#install_name_tool -change $LinkedLibName @rpath/libcrypto.1.1.dylib $1
Packit Service 17f749