Moved opus into bin folder

This commit is contained in:
MichaelOultram 2015-08-10 01:33:46 +01:00
parent 75b0e7c9c6
commit e52ed9a2d1
2 changed files with 9 additions and 4 deletions

View file

@ -13,7 +13,7 @@ install:
mkdir -p ~/.mumbledj/config
mkdir -p ~/.mumbledj/songs
mkdir -p ~/.mumbledj/web
if [ -a ~/.mumbledj/config/mumbledj.gcfg ]; then mv ~/.mumbledj/config/mumbledj.gcfg ~/.mumbledj/config/mumbledj_backup.gcfg; fi;
if [ -f ~/.mumbledj/config/mumbledj.gcfg ]; then mv ~/.mumbledj/config/mumbledj.gcfg ~/.mumbledj/config/mumbledj_backup.gcfg; fi;
cp -u config.gcfg ~/.mumbledj/config/mumbledj.gcfg
cp -u index.html ~/.mumbledj/web/index.html
if [ -d ~/bin ]; then cp -f mumbledj* ~/bin/mumbledj; else sudo cp -f mumbledj* /usr/local/bin/mumbledj; fi;

View file

@ -12,10 +12,10 @@ else
fi
# check to see if opus is installed
if [ ! -d "$HOME/opus/lib" ]; then
if [ ! -d "$HOME/bin/lib" ]; then
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
tar xzvf opus-1.0.3.tar.gz
cd opus-1.0.3 && ./configure --prefix=$HOME/opus && make && make install
cd opus-1.0.3 && ./configure --prefix=$HOME/bin && make && make install
else
echo 'Using cached version of opus.';
fi
@ -26,4 +26,9 @@ if [ ! -f "$HOME/bin/youtube-dl" ]; then
chmod a+rx ~/bin/youtube-dl
else
echo 'Using cached version of youtube-dl.';
fi
fi
ls -l $HOME/bin
ls -l $HOME/bin/lib
ls -l $HOME/opus
ls -l $HOME/opus/lib