-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from phunkyfish/EXTVLCOPT-support-Matrix
Extvlcopt support matrix
- Loading branch information
Showing
8 changed files
with
444 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
if [ "$#" -ne 1 ] || ! [ -d "$1" ]; then | ||
echo "Usage: $0 <XBMC-SRC-DIR>" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [[ "$OSTYPE" != "darwin"* ]]; then | ||
echo "Error: Script only for use on MacOSX" >&2 | ||
exit 1 | ||
fi | ||
|
||
BINARY_ADDONS_TARGET_DIR="$1/tools/depends/target/binary-addons" | ||
MACOSX_BINARY_ADDONS_TARGET_DIR="" | ||
KODI_ADDONS_DIR="$HOME/Library/Application Support/Kodi/addons" | ||
ADDON_NAME=`basename -s .git \`git config --get remote.origin.url\`` | ||
|
||
if [ ! -d "$BINARY_ADDONS_TARGET_DIR" ]; then | ||
echo "Error: Could not find binary addons directory at: $BINARY_ADDONS_TARGET_DIR" >&2 | ||
exit 1 | ||
fi | ||
|
||
XBMC_BUILD_ADDON_INSTALL_DIR=$(cd $1/addons/$ADDON_NAME 2> /dev/null && pwd -P) | ||
|
||
for DIR in "$BINARY_ADDONS_TARGET_DIR/"macosx*; do | ||
if [ -d "${DIR}" ]; then | ||
MACOSX_BINARY_ADDONS_TARGET_DIR="${DIR}" | ||
fi | ||
done | ||
|
||
if [ -z "$MACOSX_BINARY_ADDONS_TARGET_DIR" ]; then | ||
echo "Error: Could not find binary addons build directory at: $BINARY_ADDONS_DIR/macosx*" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d "$KODI_ADDONS_DIR" ]; then | ||
echo "Error: Kodi addons dir does not exist at: $KODI_ADDONS_DIR" >&2 | ||
exit 1 | ||
fi | ||
|
||
cd "$MACOSX_BINARY_ADDONS_TARGET_DIR" | ||
make | ||
rm -rf "$KODI_ADDONS_DIR/$ADDON_NAME" | ||
cp -rf "$XBMC_BUILD_ADDON_INSTALL_DIR" "$KODI_ADDONS_DIR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.