summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update version to 1.4.27eselect-1.4.27Ulrich Müller2023-09-131-0/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Display only a warning when selecting an experimental profileUlrich Müller2023-09-091-0/+5
| | | | | | | | * modules/profile.eselect (set_symlink): Selecting an experimental profile without --force is no longer a fatal error. Bug 913480. Bug: https://bugs.gentoo.org/913480 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eselect-mode: Enable lexical bindingUlrich Müller2023-08-251-0/+2
| | | | | | * misc/eselect-mode.el: Enable lexical binding. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eselect-mode: Refer to sh-mode instead of shell-script-modeUlrich Müller2023-08-241-0/+5
| | | | | | | * misc/eselect-mode.el (eselect-mode): Refer to sh-mode directly, instead of shell-script-mode which is its alias. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update documentation for "has"Ulrich Müller2023-08-221-0/+4
| | | | | | * doc/developer-guide.txt: Update documentation for "has". Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.26eselect-1.4.26Ulrich Müller2023-08-091-0/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update lists in editor and visual modulesUlrich Müller2023-08-071-0/+6
| | | | | | | | | * modules/editor.eselect (EDITOR_LIST): * modules/visual.eselect (EDITOR_LIST): Add vim; drop ed, ex, vi and xemacs. Bug 911792. Bug: https://bugs.gentoo.org/911792 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Avoid subshell on startupUlrich Müller2023-07-081-0/+4
| | | | | | * bin/eselect.in (PATH): Avoid subshell. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.25eselect-1.4.25Ulrich Müller2023-06-121-0/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* env.eselect: More robust file type detectionUlrich Müller2023-06-121-0/+3
| | | | | | | | * modules/env.eselect (is_envfile): Make detection of text file more robust. Bug 908401. Bug: https://bugs.gentoo.org/908401 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eselect-mode: Drop XEmacs compatibility codeUlrich Müller2023-06-121-0/+3
| | | | | | | * misc/eselect-mode.el (eselect-mode): Drop XEmacs compatibility code. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eselect-mode: Update copyright years before writing a fileUlrich Müller2023-06-121-0/+10
| | | | | | | | | | | | * misc/eselect-mode.el (eselect, eselect-mode-fix-whitespace) (eselect-mode-update-copyright): New custom group and variables. (eselect-mode-copyright-regexp): New variable. (eselect-mode-update-copyright): New function, mostly copied from ebuild-mode-update-copyright in ebuild-mode.el. (eselect-mode-before-save): Make fixing of whitespace conditional. Update copyright years when customised to do so. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Use printf instead of echoUlrich Müller2023-06-071-0/+2
| | | | | | * bin/eselect.in (PATH): Use printf instead of echo Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.24eselect-1.4.24Ulrich Müller2023-06-071-0/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't append a spurious newline to PATHUlrich Müller2023-06-071-0/+4
| | | | | | | * bin/eselect.in (PATH): Don't append a spurious newline. Fixes: 81dc05871392f5acbf5fadb5bb1991c737e42a5f Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.23eselect-1.4.23Ulrich Müller2023-06-061-0/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Sanitise PATHUlrich Müller2023-06-051-0/+3
| | | | | | | * bin/eselect.in (PATH): Sanitise, remove Portage's internal ebuild-helpers dir from it. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Quote argument of ":" commandUlrich Müller2023-06-051-0/+6
| | | | | | | | * bin/eselect.in (EPREFIX): Quote argument of ":" command. This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Add some more quotes throughout. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Add subsection about module testing to developer guideUlrich Müller2023-06-041-0/+5
| | | | | | | | | * doc/developer-guide.txt: Add subsection about module testing. Thanks to torsi@fi.uba.ar for the suggestion. Bug 907844. Original-author: Lemon Lime <torsi@fi.uba.ar> Closes: https://bugs.gentoo.org/907844 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't autodetect bash and env-update at configure timeUlrich Müller2023-05-111-0/+7
| | | | | | | | | | | | * bin/eselect.in: Update shebang to use EPREFIX. Bug 905934. * bin/Makefile.am (dosed): Don't substitute BASH. * libs/package-manager.bash.in (env_update): Don't use an absolute path for env-update. * libs/Makefile.am (dosed): Don't substitute ENV_UPDATE. * configure.ac: Drop checks for bash and env-update paths. Bug: https://bugs.gentoo.org/905934 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't substitute PORTAGEQ in libsUlrich Müller2023-05-111-0/+5
| | | | | | | * libs/Makefile.am (dosed): Don't substitute PORTAGEQ, it no longer exists in configure. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.22eselect-1.4.22Ulrich Müller2023-03-201-0/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Remove useless exit messageUlrich Müller2023-03-161-0/+5
| | | | | | | * bin/eselect.in (trap): Don't output a message, because die() is verbose enough. Thanks to Florian Schmaus for the suggestion. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* New "update" action in kernel moduleFlorian Schmaus2023-03-151-0/+6
| | | | | | | | | | | | | | | | * modules/kernel.eselect (do_update, describe_update) (describe_update_options): New action, attempts to update the /usr/src/linux symlink to point to the sources of the running kernel. Bug 901209. * man/kernel.eselect.5: Document it. Thanks to ulm for helpful suggestions when working on this functionality. Bug: https://bugs.gentoo.org/901209 Signed-off-by: Florian Schmaus <flow@gentoo.org> [Tweaked bash syntax. Fixed highlighting in man page.] Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* ChangeLog: Add reference to bug 901205Ulrich Müller2023-03-141-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Allow to specify modules by pathFlorian Schmaus2023-03-141-0/+5
| | | | | | | | | * libs/core.bash.in (find_module): Allow to specify an absolute path as the module's filename. Bug: https://bugs.gentoo.org/901205 Signed-off-by: Florian Schmaus <flow@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Support NO_COLORUlrich Müller2023-02-281-0/+4
| | | | | | * bin/eselect.in: Disable colours if NO_COLOR is nonempty. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.21eselect-1.4.21Ulrich Müller2023-02-271-0/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update option list in bash completionUlrich Müller2023-02-271-0/+5
| | | | | | | * misc/eselect.bashcomp (_eselect): Add --eprefix and --root options. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* New global option --eprefixUlrich Müller2023-02-271-0/+7
| | | | | | | | | * bin/eselect.in: New global option --eprefix. (es_do_help): Document it. * doc/user-guide.txt: * man/eselect.1: Document the --eprefix option. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Allow EPREFIX to be overridden for manipulating prefixed ROOTJames Le Cuirot2023-02-271-0/+5
| | | | | | | | * bin/eselect.in: Allow EPREFIX to be overridden for manipulating prefixed ROOT. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eselect-mode: Remove eselect-mode-make-keywords-list functionUlrich Müller2022-05-011-0/+3
| | | | | | | | * misc/eselect-mode.el (eselect-mode-make-keywords-list): Remove. (eselect-mode-font-lock-keywords): Inline its code. \< \> around a regexp can be obtained via the paren option of regexp-opt. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Drop XEmacs compatibility code in eselect-modeUlrich Müller2022-05-011-0/+2
| | | | | | | * misc/eselect-mode.el (eselect-mode-before-save): Call delete-trailing-whitespace which exists in XEmacs 21.5. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix a byte-compile warning in eselect-modeUlrich Müller2022-05-011-0/+5
| | | | | | | * misc/eselect-mode.el (eselect-mode): For GNU Emacs, use write-contents-functions instead of obsolete write-contents-hooks. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.20eselect-1.4.20Ulrich Müller2022-01-081-0/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Error out if --root has no option argumentUlrich Müller2022-01-081-0/+2
| | | | | | * bin/eselect.in: Error out if --root has no option argument. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.19eselect-1.4.19Ulrich Müller2022-01-081-0/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* New global option --rootUlrich Müller2022-01-081-0/+7
| | | | | | | | | * bin/eselect.in: New global option --root. (es_do_help): Document it. * doc/user-guide.txt: * man/eselect.1: Document the --root option. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Fix canonicalise call in profile moduleUlrich Müller2022-01-071-0/+5
| | | | | | | | * modules/profile.eselect (set_symlink): Don't call canonicalise with an empty argument, bug 830707. Bug: https://bugs.gentoo.org/830707 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.18eselect-1.4.18Ulrich Müller2021-12-281-0/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Don't use absolute paths in visual moduleUlrich Müller2021-10-241-0/+4
| | | | | | * modules/visual.eselect (EDITOR_LIST): Don't use absolute paths. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Recognise loongarch*/loong in package-manager libUlrich Müller2021-08-241-0/+4
| | | | | | * libs/package-manager.bash.in (arch): Recognise loongarch*/loong. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* news.eselect: Support "new" and "all" options in list actionUlrich Müller2021-02-191-0/+6
| | | | | | | | | * modules/news.eselect (do_list): Recognise "new" and "all" options, bug 771075. (describe_list_options): New function. Bug: https://bugs.gentoo.org/771075 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Prefer realpath in configure check.Ulrich Müller2020-12-181-0/+5
| | | | | | | * configure.ac (REALPATH, READLINK): Prefer realpath to readlink, because the former is included with Coreutils since version 8.15. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.17.eselect-1.4.17Ulrich Müller2020-12-161-0/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* rc.eselect: Test for regular file.Ulrich Müller2020-04-231-0/+5
| | | | | | | | * modules/rc.eselect (is_script): Test whether the script is a regular file, bug 718920. Bug: https://bugs.gentoo.org/718920 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update version to 1.4.16.eselect-1.4.16Ulrich Müller2019-11-281-0/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Changelog: Whitespace fixes.Ulrich Müller2019-11-281-3/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Update CC-BY-SA to version 4.0.Ulrich Müller2019-11-281-0/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* rc.eselect: Add missing quotes.Ulrich Müller2019-11-281-0/+5
| | | | | | | | * modules/rc.eselect (show_script_status): Quote strings to prevent globbing, bug 701382. Bug: https://bugs.gentoo.org/701382 Signed-off-by: Ulrich Müller <ulm@gentoo.org>