#!/bin/bash
self_path=${0%/*}
relocator="$self_path/mac_relocator.sh"
in_file=$1
bundle="$in_file.app"
if [[ -n $2 ]]
then
bundle=$2/$bundle
fi
mkdir -p "$bundle/Contents/MacOS"
mkdir -p "$bundle/Contents/Frameworks"
cp $in_file "$bundle/Contents/MacOS/"
$relocator "$bundle/Contents/MacOS/$in_file" "$bundle/Contents/Frameworks"
