-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed #461 uninstall script for jarvis and its dependencies
- Loading branch information
Showing
20 changed files
with
135 additions
and
6 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
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 @@ | ||
#!/usr/bin/env bash |
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 @@ | ||
#!/usr/bin/env bash |
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,14 @@ | ||
#!/usr/bin/env bash | ||
if [[ "$platform" == "linux" ]]; then | ||
jv_remove bison libasound2-dev python-dev swig | ||
elif [[ "$platform" == "osx" ]]; then | ||
jv_remove wget swig | ||
else | ||
exit 1 | ||
fi | ||
cd sphinxbase-5prealpha | ||
make uninstall | ||
cd ../ | ||
cd pocketsphinx-5prealpha | ||
make uninstall | ||
cd ../ |
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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
#!/bin/bash | ||
if [ "$platform" = "linux" ]; then | ||
jv_remove python-pyaudio python3-pyaudio libatlas-base-dev | ||
elif [[ "$platform" == "osx" ]]; then | ||
jv_remove portaudio | ||
else | ||
exit 1 | ||
fi | ||
jv_remove bzip2 | ||
sudo pip uninstall pyaudio | ||
rm -rf resources | ||
rm *snowboy* |
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 @@ | ||
#!/usr/bin/env bash |
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,2 @@ | ||
#!/usr/bin/env bash | ||
jv_remove espeak |
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 @@ | ||
#!/usr/bin/env bash |
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 @@ | ||
#!/usr/bin/env bash |
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,2 @@ | ||
#!/usr/bin/env bash | ||
jv_remove libttspico-utils |
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 @@ | ||
#!/usr/bin/env bash |
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,53 @@ | ||
#!/usr/bin/env bash | ||
declare -f dialog_msg >/dev/null || { | ||
echo "To uninstall, please run ./jarvis.sh -r" | ||
exit 1 | ||
} | ||
|
||
jv_yesno "Are you sure you want to uninstall Jarvis and all its dependancies?" || exit 1 | ||
|
||
shopt -s nullglob | ||
|
||
jv_warning "Uninstalling plugins" | ||
cd plugins | ||
for plugin in *; do | ||
echo "uninstalling $plugin..." | ||
store_plugin_uninstall $plugin | ||
done | ||
cd ../ | ||
|
||
jv_warning "Uninstalling TTS engines" | ||
cd tts_engines | ||
for tts_engine in *; do | ||
echo "uninstalling $tts_engine..." | ||
cd $tts_engine | ||
uninstall.sh | ||
cd ../ | ||
done | ||
cd ../ | ||
|
||
jv_warning "Uninstalling STT engines" | ||
cd stt_engines | ||
for stt_engine in *; do | ||
echo "uninstalling $stt_engine..." | ||
cd $stt_engine | ||
uninstall.sh | ||
cd ../ | ||
done | ||
cd ../ | ||
|
||
jv_warning "Uninstalling jarvis core dependencies" | ||
jv_remove jq sox mpg123 | ||
|
||
jv_warning "Removing jarvis folder" | ||
if jv_yesno "Do you want to backup your jarvis config?"; then | ||
cp -R config ~/jarvis_backup/ | ||
echo "config/ has been copied into ~/jarvis_backup" | ||
fi | ||
cd ../ | ||
rm -rf jarvis | ||
|
||
jv_success "Jarvis has been uninstalled successfuly" | ||
jv_debug "If you are not happy with Jarvis, please let me know the reasons at [email protected]" | ||
|
||
exit 0 |
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
17.03.03 | ||
17.03.05 |