|
@@ -13,21 +13,24 @@ case $OS in
|
|
|
esac
|
|
|
|
|
|
#Remove static rnnoise build
|
|
|
-if [ -d rnnoise-master ]; then
|
|
|
+if [ -d rnnoise ]; then
|
|
|
read -p "Do you want to remove previous rnnoise build? (y/n)?" choice
|
|
|
case "$choice" in
|
|
|
- y|Y ) rm -rf rnnoise-master && echo "Previous rnnoise build removed";;
|
|
|
+ y|Y ) rm -rf rnnoise && echo "Previous rnnoise build removed";;
|
|
|
n|N ) echo "Previous rnnoise build was not removed";;
|
|
|
* ) echo "invalid";;
|
|
|
esac
|
|
|
fi
|
|
|
|
|
|
#only rebuild rnnoise if the user prefers to
|
|
|
-if [ ! -d rnnoise-master ]; then
|
|
|
+if [ ! -d rnnoise ]; then
|
|
|
#build rrnoise statically
|
|
|
wget https://github.com/xiph/rnnoise/archive/master.zip
|
|
|
- unzip -o master.zip && rm master.zip
|
|
|
- cd rnnoise-master && ./autogen.sh
|
|
|
+ # When using git or submodule to get rnnoise, the directory will be called
|
|
|
+ # rnnoise, but when using the zip it will be rnnoise-master. Renaming to
|
|
|
+ # rnnoise to keep unity.
|
|
|
+ unzip -o master.zip && mv rnnoise-master rnnoise && rm master.zip
|
|
|
+ cd rnnoise && ./autogen.sh
|
|
|
mv ../ltmain.sh ./ && ./autogen.sh #This is weird but otherwise it won't work
|
|
|
|
|
|
if [ $OS = "Mac" ]; then
|
|
@@ -38,7 +41,8 @@ if [ ! -d rnnoise-master ]; then
|
|
|
./configure --disable-examples --disable-doc --disable-shared --enable-static
|
|
|
fi
|
|
|
|
|
|
- make -j2
|
|
|
+ # Perhaps best to remove j? Or do:
|
|
|
+ make -j$(nproc)
|
|
|
cd ..
|
|
|
fi
|
|
|
|
|
@@ -54,6 +58,3 @@ fi
|
|
|
|
|
|
cd build
|
|
|
ninja -v
|
|
|
-
|
|
|
-#install the plugin in the system
|
|
|
-sudo ninja install
|