# Create "Current" and "Current/Resources" inside each of the framework dirs
MYDIR=`pwd`
find "${BUNDLE}/Contents/Frameworks"/*framework -type d -name "Versions"|whileread -r myVar;do
cd"${myVar}"
# Create framework 'Current' soft link
VERSION_NUMBER=`ls -1`
ln -s $VERSION_NUMBER Current
# Create "Resources" subdirectory
mkdir Current/Resources
cd"${MYDIR}"
done
# Stuff for Qt framework files only
find "${BUNDLE}/Contents/Frameworks" -type d -name "Qt*framework"|whileread -r myVar;do
cd"${myVar}"
# Create soft link to the framework binary
ln -s Versions/Current/Qt*
# Create soft link to the framework Resources dir
ln -s Versions/Current/Resources
# Create the Info.plist files
MYNAME=`ls -1 Qt*`
sed 's/__SHORT_VERSION__/${QT_SHORT_VERSION}/'"${SCRIPT_DIR}/Info.plist-template_Qt5"| sed 's/__FULL_VERSION__/${QT_FULL_VERSION}/'| sed "s/__FRAMEWORK_NAME__/${MYNAME}/" > "Resources/Info.plist"
cd"${MYDIR}"
done
# Same thing, but specific to the Python framework dir
find "${BUNDLE}/Contents/Frameworks" -type d -name "P*framework"|whileread -r myVar;do
sed 's/__SHORT_VERSION__/${PYTHON_SHORT_VERSION}/'"${SCRIPT_DIR}/Info.plist-template_Python"| sed 's/__FULL_VERSION__/${PYTHON_FULL_VERSION}/'| sed "s/__FRAMEWORK_NAME__/${MYNAME}/" > "Resources/Info.plist"