2007-07-31, 07:50
For those of you who like me are too lazy to manually copy XboxMediaCenter and .so files from the source directory to the T3CH directory, here is a shell script to do everything in a single command. It will also rename arial.ttf as well as do the linking of the Scripts file for you.
Copy and Paste the following in a text file e.g. copying.sh and then execute it as "sh copying.sh". Make sure XBMC_SRC is set to the source directory and XBMC_HOME is set to the T3CH root. If XBMC_SRC and XBMC_HOME are not set correctly results are unpredictable.
---------------------------------------------------------
echo Source is $XBMC_SRC
echo Dest is $XBMC_HOME
echo Copying XboxMediaCenter
cp $XBMC_SRC/XboxMediaCenter $XBMC_HOME/XboxMediaCenter
echo Copying .so files under system
curdir=`pwd`
cd $XBMC_SRC/system
tar -cf - `find . -name "*.so" -print` | ( cd $XBMC_HOME/system && tar xBf - )
cd $curdir
echo Renaming arial.ttf to Arial.ttf
mv $XBMC_HOME/media/Fonts/arial.ttf $XBMC_HOME/media/Fonts/Arial.ttf
echo Linking Scripts to scripts
ln -s $XBMC_HOME/scripts $XBMC_HOME/Scripts
------------------------------------------------------------
Copy and Paste the following in a text file e.g. copying.sh and then execute it as "sh copying.sh". Make sure XBMC_SRC is set to the source directory and XBMC_HOME is set to the T3CH root. If XBMC_SRC and XBMC_HOME are not set correctly results are unpredictable.
---------------------------------------------------------
echo Source is $XBMC_SRC
echo Dest is $XBMC_HOME
echo Copying XboxMediaCenter
cp $XBMC_SRC/XboxMediaCenter $XBMC_HOME/XboxMediaCenter
echo Copying .so files under system
curdir=`pwd`
cd $XBMC_SRC/system
tar -cf - `find . -name "*.so" -print` | ( cd $XBMC_HOME/system && tar xBf - )
cd $curdir
echo Renaming arial.ttf to Arial.ttf
mv $XBMC_HOME/media/Fonts/arial.ttf $XBMC_HOME/media/Fonts/Arial.ttf
echo Linking Scripts to scripts
ln -s $XBMC_HOME/scripts $XBMC_HOME/Scripts
------------------------------------------------------------