Commit Graph

182 Commits (c6f7c1ad0a74cdeaa6883ae8be0847bf9824c1de)

Author SHA1 Message Date
Åke c6f7c1ad0a
Shellcheck scripts in root folder (#3090)
* Fix Shellcheck: Add -r flag to read

read will mangle backslashes without it. These are not expected
characters so not explicitly necessary, but also won't hurt.

* Fix Shellcheck SC2086: Double quote variables

* Fix Shellcheck SC2004: dollar sign unnecessary on arithmetic vars

* Fix Shellcheck SC2129: use curly braces to >> file

* Disable shellcheck on sourced venv/bin/activate

* Fix Shellcheck SC1004

Simplify sed-expression to be a single line only removing the need for
the offending / and linefeed

* Fix Shellcheck SC2046 when finding repo root

Splits the check into to files to be able to quote the expressions
in a good way.

* Fix Shellcheck SC2086 Unquoted apt packagaes

This converts the variable APT_PACKAGE_LIST from a string to an array.
This is a safer way to handle arguments according to BashFAQ
(http://mywiki.wooledge.org/BashFAQ/050)

* Fix Shellcheck SC2230 by changing which to command -v

* CICD: Activate shellcheck job for dev_setup.sh

* Shellcheck start-mycroft.sh

This fixes the following shellcheck issues:
- https://www.shellcheck.net/wiki/SC2164 -- Use 'cd ... || exit' or 'cd ... |...
- https://www.shellcheck.net/wiki/SC2206 -- Quote to prevent word splitting/g...
- https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
- https://www.shellcheck.net/wiki/SC2124 -- Assigning an array to a string! A...

The command is added to the CICD run of shellcheck

* Shellcheck stop-mycroft.sh

Fixes the following issues:
- https://www.shellcheck.net/wiki/SC2164 -- Use 'cd ... || exit' or 'cd ... |...
- https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...

The file is now automatically checked by the CICD job

* Shellcheck venv-activate.sh

Fix the following shellcheck issues:
- https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ...
- https://www.shellcheck.net/wiki/SC2145 -- Argument mixes string and array. ...
- https://www.shellcheck.net/wiki/SC2128 -- Expanding an array without an ind...
- https://www.shellcheck.net/wiki/SC2139 -- This expands when defined, not wh...
- https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...

The help for invalid arg now works when the faulty argument isn't the
first argument

Co-authored-by: Kris Gesling <kris.gesling@mycroft.ai>
2022-04-07 14:21:26 +09:30
Kris Gesling 536ea7e9b5
Remove skills dir symlink on --clean (#3086)
* Remove skills dir symlink on --clean

* Add note on --clean about files not removed
2022-03-22 15:47:43 +09:30
Kris Gesling b583cbbf7e Send python version detection output to /dev/null 2022-03-02 12:14:53 +09:30
Åke 012d5a517c
Merge pull request #3080 from MycroftAI/bugfix/pip-install
Fix pip url for Python > 3.6
2022-02-28 21:54:32 +01:00
Åke dd7f7abba6
Shellcheck scripts folder (#3063)
* Remove unused scripts

install-pocketsphinx and install-pygtk is no longer used by the
dev-setup.

* Fix shellcheck issues in scripts

* Remove space in cores argument

* Update my-info.sh script

- Make it use the new method to activate venv if needed
- Improve requirements.txt parsing
- Update process detection from old "screen" setup
- Update log-files paths
- Fix finding mycroft-core folder

* Fix shellcheck issues in mycroft-use.sh

Mainly quoting but also unpacking of arguments and improving some if
statements

* Update shellcheck test to include scripts folder
2022-02-28 14:44:15 +09:30
Kris Gesling 909d89e28e Fix pip url for Python > 3.6 2022-02-28 14:35:23 +09:30
luca-vercelli 4791114609
missing initial value (#3061)
Condition

    if [ $disable_precise_later == true ]; 

gives a syntax error if variable is not initialized
2022-02-24 10:21:17 +09:30
Kris Gesling 953cc53e13
Merge pull request #3060 from kleo/dev
Use double bracket for shell conditional
2022-02-24 10:17:11 +09:30
Åke a487f66958
Select the proper get-pip url for Python 3.6 (#3073)
The bootstrap script no longer supports Python 3.6, instead it
recommends python 3.6 users to use an alternative url.
2022-02-14 15:10:24 +09:30
Kleo Bercero 6d66b800dc Use double bracket 2022-01-01 19:49:36 +08:00
Fabian Heck d9c280afd4 Issue-3041 - Install pip for python version specified by argument in dev_setup 2021-11-29 16:57:34 +01:00
Bahadır Yaren bd85c94cdb Issue-3026 - Fixing Gentoo dependency 2021-11-25 12:21:00 +01:00
Caleb Trevatt f50b27f839 Issue-3011 - Fixed AVX / Precise unavailable check 2021-10-18 23:37:16 +10:00
Caleb Trevatt faebb13e10 Issue-3011 - Fixing AVX / Precise unavailable check 2021-10-18 23:32:43 +10:00
el-tocino 32812f605b
alter avx test to accomodate aarch64 2021-09-14 01:27:06 -05:00
AJ Jordan ac17d7899a Install pulseaudio-utils on Fedora
Needed for `paplay`.
2021-08-11 00:00:44 -07:00
Kris Gesling ff2db272b8 Add comment explaining no check for AVX on ARM 2021-05-31 08:19:18 +09:30
Kris Gesling 771b8aa36b Improve writing of config under different conditions 2021-05-28 21:48:50 +09:30
mathmauney e846d97a24 Sed needs sudo 2021-05-28 21:48:50 +09:30
mathmauney 9c09f1739b Edit system .conf and make if needed 2021-05-28 21:48:50 +09:30
mathmauney e926504157 Ignore missing AVX for ARM systems 2021-05-28 21:48:49 +09:30
mathmauney 4ca656caac Issue-2232 Add warning when AVX is not detected and fallback. 2021-05-28 21:48:49 +09:30
Åke Forslund 849c431866 Fix dev_setup.sh max cores detection
Define LANGUAGE along with LANG to ensure that free uses english output
2021-03-14 11:11:29 +01:00
Bart Ribbers 934c289f03 dev_setup.sh: install Alpine deps to a virtual meta package
This allows easy uninstalling of the deps later on by just running "apk
del makedeps-mycroft-core"
2021-02-16 17:01:37 +01:00
Kris Gesling bfd6be347f
Merge pull request #2690 from pixelherodev/dev
Add support for `doas`
2021-02-05 14:46:29 +09:30
Chris Veilleux c7b5783d89 The "tput" commands were failing in GitHub Actions, added CI check as there is no reason to execute those commands in a CI environment. 2021-01-27 12:49:48 -06:00
Åke Forslund 0dadb580c3 Enable utf-8 encoding during dev-setup.sh 2020-10-30 13:04:29 +01:00
emphasize 0df9e40589 allow variants of arch (archarm, ...) to be processed 2020-10-16 00:13:53 +02:00
el-tocino 8005193769 revised mem calculation 2020-10-09 07:28:19 +02:00
Noam Preil 3e63514804
Add support for `doas` 2020-09-11 00:44:50 -04:00
Kris Gesling e756f96d9d
Merge pull request #2521 from countcretinos/fix/fedora
Fix Mimic build on Fedora
2020-07-28 01:35:38 +00:00
Thomas Doczkal 8ddd088557
Merge branch 'dev' into gentoo_setup 2020-06-06 12:19:57 +02:00
Åke 7d4243318a
Revert "use long options and add --upgrade to arch linux pacman" 2020-05-17 20:14:07 +02:00
Thomas Doczkal 5baea9355b remove virtualenv, add python-request, media-libs/alsa-lib and dev-libs/icu 2020-05-17 13:57:47 +02:00
Åke 90d2570cc3
Merge pull request #2575 from PureTryOut/optional-deps
Move requirements.txt to a new requirements folder and add optional deps
2020-05-14 15:04:56 +02:00
Åke db58e189e4
Merge pull request #2584 from PureTryOut/dev-setup-alpine-support
dev_setup.sh: add support for Alpine Linux
2020-05-12 20:39:22 +02:00
Bart Ribbers d6337f51c5
dev_setup.sh: add support for Alpine Linux 2020-05-12 15:17:40 +02:00
Thomas Doczkal 0cda2b1c6c
remove --sync and align with other distros like debian 2020-05-11 21:23:37 +02:00
Thomas Doczkal fb87b719ff
use long options and add upgrade to arch linux pacman 2020-05-11 21:07:53 +02:00
Bart Ribbers 531f78c499
Move requirements.txt to a new requirements folder and add optional deps
Some dependencies aren't actually required but can be optionally
installed for extra functionality.

The Chromecast is an optional audio backend
VLC is an optional audio backend
pyalsaaudio is only used by the mark1 enclosure
google-api-python-client is an optional STT backend, by default Mycroft
uses the Mycroft servers
2020-05-11 15:31:10 +02:00
Thomas Doczkal fb760f0202 add gentoo setup 2020-05-10 17:50:52 +02:00
Count Cretinos 7af26fbb55
Fix Mimic build on Fedora
See mycroftai/mimic1#196
2020-03-29 21:07:44 +03:00
Joshua Moore decb77a437
Fixed typo "Devloper" to "Developer" 2020-03-01 20:56:54 -07:00
Åke Forslund 6a7288ac93 Upgrade to latest pip version and version of getpip 2020-01-27 15:49:19 +01:00
Åke e4a50f0c81
Merge pull request #2412 from maxbachmann/patch-2
use default python version on redhat
2019-12-07 12:14:17 +01:00
Åke Forslund 19ecd245b2 Fix --clean option of dev_setup.sh
removing the tmp files needed the recursive flag
2019-12-06 11:45:57 +01:00
maxbachmann 5c642f5336
use default python version on redhat 2019-12-05 17:46:19 +01:00
Åke 366730b7a9
Merge pull request #2403 from gbaptista/dev
Fixing dev_setup.sh for Arch Linux
2019-12-05 15:21:19 +01:00
Guilherme Baptista d7b4322aa1 removing virtualenv from arch linux 2019-12-05 10:40:22 -03:00
Åke 9ed5b69fe1
Merge pull request #2401 from forslund/feature/dev-setup-clean
Add --clean option to dev_setup.sh
2019-12-03 17:11:58 +01:00