Windows Media Player 9
captainclever writes "The Register has an interesting article about the posibilities for WMP Clients for Linux.
Would anyone want to use MS WMP in Linux?" See also a news.com story.
← Back to Stories (view on slashdot.org)
# I wrote this litte script for building/updating MPlayer from CVS, mainly because I was bored ;)
.."r loginr co main
c vsroot/ffmpeg loginc vsroot/ffmpeg co ffmpeg
./configure; make ...;
..." .. ;)"
if [ -s "$HOME/cvs/main/CVS/Root" ];
then
echo "MPlayer CVS Root file OK"
cd ~/cvs/main
rm ~/cvs/main/roka-updated; touch ~/cvs/main/roka-updated
echo "-+- Checking MPlayer CVS Source Tree"
cvs -q status | grep File | awk {' \
if ($4 == "Needs") print "File "$2" updated"; \
if ($6 == "Needs") print "File "$4" is missing"; \
if ($4 == "Needs") print $2" updated" > "roka-updated"; \
if ($6 == "Needs") print $4" updated" > "roka-updated"'}
else
if [ -s "$HOME/cvs" ];
then
echo "$HOME/cvs exists"
else
mkdir "$HOME/cvs"
fi
if [ -s "$HOME/cvs" ];
then
cd ~/cvs
else
echo "-+- Couldn't change to directory ~/cvs - Check permissions"
echo "-+- Exiting
exit
fi
echo "-+- Running for the first time."
echo "-+- Press enter for anonymous login"
cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplaye
echo "-+- Retrieving MPlayer from CVS"
cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplaye
echo "first run" > ~/cvs/main/roka-updated
fi
if [ -s "$HOME/cvs/main/ffmpeg/CVS/Root" ];
then
echo "-+- FFmpeg CVS Root file OK"
cd ~/cvs/main/ffmpeg
rm ~/cvs/main/ffmpeg/roka-updated; touch ~/cvs/main/ffmpeg/roka-updated
echo "-+- Checking FFmpeg CVS Source Tree"
cvs -q status | grep File | awk {' \
if ($4 == "Needs") print "File "$2" updated"; \
if ($6 == "Needs") print "File "$4" is missing"; \
if ($4 == "Needs") print $2" updated" > "roka-updated"; \
if ($6 == "Needs") print $4" updated" > "roka-updated"'}
else
cd ~/cvs/main
echo "-+- Press enter for anonymous login"
cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/
echo "-+- Retrieving FFmpeg from CVS"
cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/
echo "first run" > ~/cvs/main/ffmpeg/roka-updated
fi
if [ -s "$HOME/cvs/main/ffmpeg/roka-updated" ];
then
echo -+- Update detected;
echo "-+- Press enter for anonymous login"
cd ~/cvs/main/ffmpeg
cvs login
echo "-+- Now updating ffmpeg CVS Tree"
cvs update -dP
echo "-+- configuring and building FFmpeg"
echo "-+- deleting old libavcodec directory"
rm -rf ~/cvs/main/libavcodec
echo "-+- copying libavcodec to MPlayer CVS directory"
cp -R ~/cvs/main/ffmpeg/libavcodec ~/cvs/main/
else
echo -+- No updates detected in ffmpeg CVS
fi
cd ~/cvs/main
if [ -s "$HOME/cvs/main/roka-updated" ];
then
echo "-+- Updates in MPlayer CVS detectd"
echo "-+- Press enter for anonymous login"
cvs login
echo "-+- Now updating CVS Tree"
cvs update -dP
else
if [ -s "$HOME/cvs/main/ffmpeg/roka-updated" ];
then
echo "-+- Updates in ffmpeg CVS only - compiling anyway"
else
echo "-+- No updates detected in CVS - exiting
exit
fi
fi
echo "-+- Running MPlayer configure script"
./configure --enable-menu
echo "-+- Building MPlayer-current"
make
echo "-+- Building drivers for optimized graphic chipsets"
cd drivers
make
cd
echo "-+- Ready to install, give superuser password."
echo "-+- It's better to do this manually for security reasons."
su root -c 'make install'
echo "-+- Copying configuration files"
cp -uv etc/* ~/.mplayer/
rm ~/cvs/main/roka-updated
echo "-+- All Done, hopefully successful
echo "-+- You may copy the following chipset drivers to your kernel modules dir"
ls -d ~/cvs/main/drivers/*.o