2023-11-05 Ulrich Müller * misc/eselect-mode.el: Doc fix. 2023-10-06 Ulrich Müller * misc/eselect-mode.el (eselect-mode, eselect-mode-hook): Sharp-quote the function names. * misc/eselect-mode.el (eselect-mode-add-font-lock): New function. (eselect-mode-hook): Add it, instead of an anonymous function. 2023-09-13 Ulrich Müller * configure.ac: Update version to 1.4.27. * Tagged 1.4.27 release. 2023-09-09 Ulrich Müller * modules/profile.eselect (set_symlink): Selecting an experimental profile without --force is no longer a fatal error. Bug 913480. 2023-08-24 Ulrich Müller * misc/eselect-mode.el: Enable lexical binding. * misc/eselect-mode.el (eselect-mode): Refer to sh-mode directly, instead of shell-script-mode which is its alias. 2023-08-22 Ulrich Müller * doc/developer-guide.txt: Update documentation for "has". 2023-08-09 Ulrich Müller * configure.ac: Update version to 1.4.26. * Tagged 1.4.26 release. 2023-08-07 Ulrich Müller * modules/editor.eselect (EDITOR_LIST): * modules/visual.eselect (EDITOR_LIST): Add vim; drop ed, ex, vi and xemacs. Bug 911792. 2023-07-08 Ulrich Müller * bin/eselect.in (PATH): Avoid subshell. 2023-06-12 Ulrich Müller * configure.ac: Update version to 1.4.25. * Tagged 1.4.25 release. * modules/env.eselect (is_envfile): Make detection of text file more robust. Bug 908401. * misc/eselect-mode.el (eselect-mode): Drop XEmacs compatibility code. * 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. 2023-06-07 Ulrich Müller * bin/eselect.in (PATH): Use printf instead of echo. * configure.ac: Update version to 1.4.24. * Tagged 1.4.24 release. * bin/eselect.in (PATH): Don't append a spurious newline. 2023-06-06 Ulrich Müller * configure.ac: Update version to 1.4.23. * Tagged 1.4.23 release. 2023-06-05 Ulrich Müller * bin/eselect.in (PATH): Sanitise, remove Portage's internal ebuild-helpers dir from it. * bin/eselect.in (EPREFIX): Quote argument of ":" command. This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Add some more quotes throughout. 2023-06-04 Ulrich Müller * doc/developer-guide.txt: Add subsection about module testing. Thanks to torsi@fi.uba.ar for the suggestion. Bug 907844. 2023-05-11 Ulrich Müller * 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. * libs/Makefile.am (dosed): Don't substitute PORTAGEQ, it no longer exists in configure. 2023-03-20 Ulrich Müller * configure.ac: Update version to 1.4.22. * Tagged 1.4.22 release. 2023-03-16 Ulrich Müller * bin/eselect.in (trap): Don't output a message, because die() is verbose enough. Thanks to Florian Schmaus for the suggestion. 2023-03-14 Florian Schmaus * 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. * libs/core.bash.in (find_module): Allow to specify an absolute path as the module's filename, bug 901205. 2023-02-28 Ulrich Müller * bin/eselect.in: Disable colours if NO_COLOR is nonempty. 2023-02-27 Ulrich Müller * configure.ac: Update version to 1.4.21. * Tagged 1.4.21 release. * misc/eselect.bashcomp (_eselect): Add --eprefix and --root options. 2023-02-26 Ulrich Müller * bin/eselect.in: New global option --eprefix. (es_do_help): Document it. * doc/user-guide.txt: * man/eselect.1: Document the --eprefix option. 2023-02-26 James Le Cuirot * bin/eselect.in: Allow EPREFIX to be overridden for manipulating prefixed ROOT. 2022-05-01 Ulrich Müller * misc/eselect-mode.el (eselect-mode): For GNU Emacs, use write-contents-functions instead of obsolete write-contents-hooks. (eselect-mode-before-save): Call delete-trailing-whitespace which exists in XEmacs 21.5. (eselect-mode-make-keywords-list): Remove function. (eselect-mode-font-lock-keywords): Inline its code. \< \> around a regexp can be obtained via the paren option of regexp-opt. 2022-01-08 Ulrich Müller * configure.ac: Update version to 1.4.20. * Tagged 1.4.20 release. * bin/eselect.in: Error out if --root has no option argument. * configure.ac: Update version to 1.4.19. * Tagged 1.4.19 release. * bin/eselect.in: New global option --root. (es_do_help): Document it. * doc/user-guide.txt: * man/eselect.1: Document the --root option. 2022-01-07 Ulrich Müller * modules/profile.eselect (set_symlink): Don't call canonicalise with an empty argument, bug 830707. 2021-12-28 Ulrich Müller * configure.ac: Update version to 1.4.18. * Tagged 1.4.18 release. 2021-10-24 Ulrich Müller * modules/visual.eselect (EDITOR_LIST): Don't use absolute paths. 2021-08-24 Ulrich Müller * libs/package-manager.bash.in (arch): Recognise loongarch*/loong. 2021-02-17 Ulrich Müller * modules/news.eselect (do_list): Recognise "new" and "all" options, bug 771075. (describe_list_options): New function. 2020-12-18 Ulrich Müller * configure.ac (REALPATH, READLINK): Prefer realpath to readlink, because the former is included with Coreutils since version 8.15. 2020-12-16 Ulrich Müller * configure.ac: Update version to 1.4.17. * Tagged 1.4.17 release. 2020-04-23 Ulrich Müller * modules/rc.eselect (is_script): Test whether the script is a regular file, bug 718920. 2019-11-28 Ulrich Müller * configure.ac: Update version to 1.4.16. * Tagged 1.4.16 release. * README: Documentation is now dual-licensed under GPL-2+ or CC-BY-SA-4.0. Update URI of GPL-2 license text. * modules/rc.eselect (show_script_status): Quote strings to prevent globbing, bug 701382. 2019-09-04 Ulrich Müller * configure.ac: Update version to 1.4.15. * Tagged 1.4.15 release. * autogen.bash (WANT_AUTOCONF, WANT_AUTOMAKE): Update versions. 2019-09-02 Ulrich Müller * libs/editor-variable.bash.in (find_in_path): New function, looks up its first argument in EDITOR_PATH, and tests if it exists. (find_targets, do_set): Use it. * modules/pager.eselect (EDITOR_LIST): * modules/editor.eselect (EDITOR_LIST): Don't use absolute paths. * man/editor.eselect.5: * man/pager.eselect.5: Update. 2019-05-26 Ulrich Müller * modules/news.eselect (do_read, do_unread): Allow specification of item by its number or name. (describe_read_options, describe_unread_options): Document it. 2019-02-17 Ulrich Müller * configure.ac: Update version to 1.4.14. * Tagged 1.4.14 release. 2019-02-13 Ulrich Müller * libs/output.bash.in (colours): Display warning messages in yellow, in order to distinguish from errors which are red. 2018-12-22 Ulrich Müller * modules/profile.eselect (set_symlink): Warn about deprecated profiles, bug 673568. 2018-08-07 Ulrich Müller * man/profile.eselect.5: Update examples, bug 662996. 2018-05-29 Ulrich Müller * configure.ac: Update version to 1.4.13. * Tagged 1.4.13 release. * doc/developer-guide.txt: Replace the term "dep atom" by "package dependency specification". * libs/multilib.bash.in (get_libdir): New function. * doc/developer-guide.txt: Describe it. * libs/Makefile.am (dosed): Substitute @libdir@. * misc/eselect-mode.el (eselect-mode-keywords-multilib): Add get_libdir. 2018-01-24 Ulrich Müller * configure.ac: Update version to 1.4.12. * Tagged 1.4.12 release. * modules/rc.eselect (show_script_status): Add /lib64/rc/bin to PATH as well, workaround for bug 645240 until OpenRC is fixed. 2018-01-23 Ulrich Müller * libs/package-manager.bash.in (arch): Restore sparc64 which was lost in a previous update. Sync with arch.list in the gentoo repo. 2018-01-09 Ulrich Müller * configure.ac: Update version to 1.4.11. * Tagged 1.4.11 release. * modules/profile.eselect (set_symlink): Require --force option when selecting an experimental profile. 2018-01-08 Ulrich Müller * modules/profile.eselect (find_targets): Add a fourth field for the profiles' status to the output. (set_symlink): Account for the change in find_targets. (do_list): Also show the profiles' status, but only in non-brief output mode. Bug 643864. 2017-12-25 Ulrich Müller * configure.ac: Update version to 1.4.10. * Tagged 1.4.10 release. * modules/news.eselect (do_list): Check for valid news item format. * libs/core.bash.in (eval): Make it fatal again, after more than one year of transition time. 2017-10-14 Ulrich Müller * man/news.eselect.5: Update URI of GLEP 42. 2017-06-18 Ulrich Müller * libs/package-manager.bash.in (arch): Map nios2 to nios2 (as it is called in profiles/arch.list) rather than nios. 2017-05-22 Ulrich Müller * modules/profile.eselect (set_symlink): Fix regex, bug 614008. 2017-05-06 Ulrich Müller * modules/kernel.eselect (do_set): Don't remove the old symlink before we know that we have a valid new target, bug 640386. Simplify. (set_symlink): Check if the new link target is valid, then remove any old symlink, then set the new one. (remove_symlink): Use rm -f. * modules/kernel.eselect (set_symlink): * modules/profile.eselect (set_symlink): Check range of number, bug 617572. Thanks to Takuto Yoshida . 2017-03-22 Ulrich Müller * configure.ac: Update version to 1.4.9. * Tagged 1.4.9 release. 2017-03-21 Mike Frysinger * libs/package-manager.bash.in (arch): Fill out arch matches a bit more. 2016-12-10 Ulrich Müller * configure.ac: Update version to 1.4.8. * Tagged 1.4.8 release. 2016-12-04 Ulrich Müller * libs/package-manager.bash.in (get_repositories) (get_repo_news_dir): Fix pinspect calls, bug 304011. * modules/news.eselect (find_items, find_repo_dir): Check return status of package manager calls, bug 601506. 2016-10-31 Ulrich Müller * libs/core.bash.in (eval): Disable eval again, because the workaround for the rc module (sourcing functions.sh) is no longer needed. See also 2005-05-15 change by ciaranm. 2016-10-30 Ulrich Müller * configure.ac: Update version to 1.4.7. * Tagged 1.4.7 release. * libs/config.bash.in (store_config): Ignore comment lines in config files and make parsing more robust, bug 598480. 2016-06-17 Ulrich Müller * configure.ac: Update version to 1.4.6. * Tagged 1.4.6 release. 2016-06-16 Ulrich Müller * modules/pager.eselect (EDITOR_LIST): Prefer less to more. * man/pager.eselect.5: Update. 2016-06-01 Ulrich Müller * configure.ac: Make testing for git repository more robust. * configure.ac: Where possible, use AC_CHECK_PROGS instead of AC_PATH_PROGS, in order to avoid absolute paths, bug 122260. * libs/core.bash.in (sed): * libs/package-manager.bash.in (portageq): Invoke commands with "command" so that they will work without a path. 2016-01-27 Ulrich Müller * bin/eselect.in: Set umask +rx, bug 572348. 2015-08-26 Ulrich Müller * doc/developer-guide.txt: * doc/user-guide.txt: * doc/release-guide.txt: Use sentence case in headings. 2015-08-22 Ulrich Müller * configure.ac (EXTRAVERSION): Fix detection of git revision for out-of-tree builds. 2015-08-13 Ulrich Müller * configure.ac: Update version to 1.4.5. * Tagged 1.4.5 release. * autogen.bash: Update for aclocal 1.15 and automake-1.15. * modules/binutils.eselect: * man/binutils.eselect.5: Module removed. This has been converted to a wrapper and moved to the binutils-config package, bug 507870. * modules/Makefile.am (modules_DATA): * man/Makefile.am (man_MANS): Update accordingly. 2015-01-24 Ulrich Müller * configure.ac: Update version to 1.4.4. * Tagged 1.4.4 release. * README: Documentation is now licensed under GPL-2+ or CC-BY-SA-3.0 (was CC-BY-SA-2.5 before). 2015-01-18 Ulrich Müller * modules/rc.eselect (is_script): Don't call external programs. Test if script is executable, with a shebang in its first line. * configure.ac (EXTRAVERSION): Use "git describe --long". 2015-01-17 Ulrich Müller * modules/rc.eselect: Be compatible with new OpenRC, bug 536822. (is_script): Test for "openrc-run" or "runscript" in shebang line. (run_runscript): Omit the interpreter when executing the script. 2014-09-01 Ulrich Müller * configure.ac: Update version to 1.4.3. * Tagged 1.4.3 release. 2014-08-28 Ulrich Müller * modules/kernel.eselect (find_targets): Changed heuristic for recognising kernel source trees: Check for both Makefile and Kconfig being present, but don't require digits in the directory name any more. Bug 516754. * libs/core.bash.in (inherit): * libs/tests.bash.in (has): * modules/config.eselect (generic_handle_one_file, accept_handler) (merge_handler, display_handler): * modules/news.eselect (find_items, do_list, do_read, do_unread): * modules/rc.eselect (run_runscript, do_show): Remove redundant $@ in "for" loops throughout. 2014-06-05 Ulrich Müller * misc/eselect.bashcomp (_eselect): Improve handling of options that are followed by an equals sign. * bin/eselect.in: Parse global options even if we are invoked as something-config or similar. Respect "--" to indicate end of options. 2014-05-24 Ulrich Müller * configure.ac: Update version to 1.4.2. * Tagged 1.4.2 release. * modules/profile.eselect (get_repos): Fix bash 4.3 breakage, bug 511132. 2014-05-20 Ulrich Müller * bin/Makefile.am (dosed): * libs/Makefile.am (dosed): * man/Makefile.am (dosed): Use "%" instead of "," as delimiter. * configure.ac: Replace "git rev-parse" by "git describe", now that git-r3.eclass supports it (bug 489100). 2014-03-20 Ulrich Müller * doc/user-guide.txt: Mention the "unset" action also here. Remove redundant "Usage" heading. * doc/developer-guide.txt: Remove duplicate heading, because rst2html --report=info complains about it. Reorder the standard action names to be congruent with the user guide. * Makefile.am (%.html): Strip comments from html output, in order to suppress wrong mode information in Emacs local variables. 2014-03-14 Ulrich Müller * libs/output.bash.in (write_kv_list_entry): Don't output spurious trailing whitespace if value is an empty string. 2014-02-25 Ulrich Müller * modules/news.eselect (accepted_languages): Suppress "C" and "POSIX" in output. Support _. 2014-02-18 Ulrich Müller * man/news.eselect.5: Update URI of GLEP 42. 2014-02-15 Ulrich Müller * configure.ac: Update version to 1.4.1. * Tagged 1.4.1 release. 2014-02-09 Ulrich Müller * modules/rc.eselect (get_runlevel): Call "rc-status -r" directly, in order to avoid sourcing functions.sh, bug 373219. Remove baselayout-1 compatibility code. (source_rc_functions): Remove function. (do_show): Don't call source_rc_functions. (show_script_status): Set proper PATH to service_* commands. 2014-01-19 Ulrich Müller * libs/package-manager.bash.in (arch): Recognise aarch64*/arm64. 2013-12-07 Ulrich Müller * configure.ac: Update version to 1.4. * Tagged 1.4 release. 2013-11-19 Ulrich Müller * libs/default.eselect.in (do_help): Don't reset output mode. 2013-11-15 Ulrich Müller * libs/output.bash.in (write_kv_list_entry): Suppress wrapping of lines in brief output mode, in order to make automatic parsing easier. Bug 490882. * modules/modules.eselect (do_list): New local option --only-names will output names of modules only, without their description. This replaces the previous brief output mode behaviour and is mainly intended for bash completion. (describe_list_options): New function, documents --only-names. * bin/eselect.in (es_do_help): Don't force default output mode. * misc/eselect.bashcomp (_eselect): Call "eselect modules list" with --only-names option. * misc/eselect.bashcomp (_eselect): Suggest possible completions also for an empty list of words, i.e. when the user has not typed any parameters yet. 2013-11-14 Michael Marineau * modules/profile.eselect (set_symlink): Silence profile symlink warning when using --force, bug 491216. 2013-11-10 Ulrich Müller * libs/output.bash.in (space): Implement more efficiently. 2013-10-27 Ulrich Müller * autogen.bash: Update for aclocal 1.14. 2013-10-25 Ulrich Müller * libs/output.bash.in (colours): Accept an argument and handle both enabling and disabling of colour output. (nocolours): Remove function. * bin/eselect.in: Call 'colours' with appropriate argument. 2013-10-22 Ulrich Müller * bin/eselect.in (es_do_list_options, es_do_list_modules): Remove deprecated functions. (es_do_help): Move code for listing options and modules to here. 2013-10-21 Ulrich Müller * bin/eselect.in: Remove legacy --no-colour option. Option --colour=no or --colour=never should be used instead. * bin/eselect.in (es_find_module): Move function to core library. * libs/core.bash.in (find_module): Rename and simplify. 2013-09-18 Ulrich Müller * misc/eselect-mode.el (eselect-mode-keywords-package-manager): Add env_update. 2013-08-28 Ulrich Müller * configure.ac: Update version to 1.3.8. * Tagged 1.3.8 release. * autogen.bash: Update for autoconf 2.69 and automake 1.14. 2013-08-24 Ulrich Müller * man/Makefile.am (install-symlink-%): Use relative symlinks. * modules/rc.eselect (source_rc_functions): Drop baselayout-1 compatibility code. 2013-08-08 Ulrich Müller * configure.ac: Check whether we are building from git; include git revision in EXTRAVERSION if we do. * bin/Makefile.am (dosed): Append EXTRAVERSION to VERSION. 2013-08-06 Ulrich Müller * libs/config.bash.in (store_config): * libs/default.eselect.in (show_usage_message): * libs/editor-variable.bash.in (do_set): * libs/output.bash.in (write_kv_list_entry): * modules/env.eselect (create_profile_env, create_prelink_conf): * modules/news.eselect (do_list, do_read): Declare IFS as local variable. 2013-08-05 Ulrich Müller * man/bashcomp.eselect.5: Remove stale man page. * man/Makefile.am (man_MANS): Remove bashcomp.eselect.5 from list. 2013-07-16 Ulrich Müller * configure.ac: Update version to 1.3.7. * Tagged 1.3.7 release. * modules/bashcomp.eselect: Remove, bug 476992. * modules/Makefile.am (modules_DATA): Remove bashcomp.eselect. * Makefile.am (symlinks): Don't install bashcomp-config symlink. 2013-07-14 Ulrich Müller * modules/kernel.eselect (find_targets, set_symlink, do_show): Consider target trees as valid only if they contain a Makefile, bug 460328. Thanks to C.J. Wijtmans . 2013-07-11 Ulrich Müller * doc/user-guide.txt: * doc/developer-guide.txt: * doc/release-guide.txt: These files are now dual-licensed under GPL-2+ or CC-BY-SA-2.5. Permission from authors Ciaran McCreesh, Danny van Dyk, and Shyam Mani received per e-mail on 2013-07-10. * README: Add notice about dual-licensing of documentation. 2013-07-09 Ulrich Müller * doc/developer-guide.txt: * libs/skel.bash.in: Move skel.bash documentation to the library itself. * doc/developer-guide.txt: Update description of the "arch" function. 2013-07-07 Ulrich Müller * libs/editor-variable.bash.in (do_set): * modules/locale.eselect (do_set): Don't return bad status when ROOT is nontrivial, bug 473308. Thanks to . 2013-07-06 Ulrich Müller * configure.ac: Update version to 1.3.6. * Tagged 1.3.6 release. * bin/eselect.in: Save stderr only in bash 4.1 or later, where automatically assigned file descriptors are available. Using a fixed descriptor makes bash crash on Darwin, bug 475284. * libs/core.bash.in (die): Test for saved file descriptor. 2013-07-04 Ulrich Müller * misc/eselect-mode.el: New file, editing mode for Emacs, split off from app-emacs/gentoo-syntax. * misc/Makefile.am (EXTRA_DIST): Add eselect-mode.el. 2013-06-22 Ulrich Müller * configure.ac: Update version to 1.3.5. * Tagged 1.3.5 release. 2013-06-17 Ulrich Müller * libs/package-manager.bash.in (arch): Workaround for incorrect definition of ARCH in prefix/linux profiles, bug 473542. 2013-04-06 Ulrich Müller * doc/developer-guide.txt: Document the "unset" action; it is used by several external modules. 2013-02-22 Ulrich Müller * modules/profile.eselect (get_symlink_location): Create profile symlink below PORTAGE_CONFIGROOT, bug 453006. 2013-01-13 Ulrich Müller * bin/eselect.in (ESELECT_STDERR): Save stderr file descriptor. * libs/core.bash.in (die): Restore stderr, otherwise there would be no output if die was called while stderr is redirected. Fixes bug 451150. Thanks to Michał Górny . 2013-01-06 Ulrich Müller * configure.ac: Update version to 1.3.4. * Tagged 1.3.4 release. 2013-01-05 Ulrich Müller * libs/package-manager.bash.in (arch): Complete rewrite of the fallback code if there is no make.profile symlink. It now relies on bash variables HOSTTYPE and OSTYPE which are derived from the standard GNU triplet. The previous implementation had used uname which would query the kernel, while we need the userland. This fixes a problem on ppc with 64 bit kernel and 32 bit userland. Thanks to Brent Baude and Raúl Porcel for the suggestion. 2012-12-06 Ulrich Müller * modules/profile.eselect (get_repos, get_repo_path): Use EROOT to make it work in Prefix, fixes bug 444620. Thanks to Greg Turner for bug report and patch. 2012-10-21 Ulrich Müller * configure.ac: Update version to 1.3.3. * Tagged 1.3.3 release. 2012-10-13 Ulrich Müller * autogen.bash: Update to automake 1.12. This gets rid of the "scan_file() called too early to check prototype" error that occured with aclocal-1.11. * configure.ac (SED): Replace broken ES_PROG_GNU_SED code by a straightforward check for gsed or sed, bug 438112. (READLINK, REALPATH): Simplify logic and add output messages. (RST2HTML): Simplify. * acinclude.m4: File removed. 2012-10-11 Ulrich Müller * libs/package-manager.bash.in (arch): Add amd64 as case label. * modules/profile.eselect (set_symlink): Include underscore and hyphen in regexp, because both are allowed in keyword names, bug 437986. Thanks to Yuta Satoh . 2012-09-15 Ulrich Müller * libs/editor-variable.bash.in (do_set): * modules/locale.eselect (do_set): Output message only if ROOT is /, and prefix /etc/profile with EROOT, bug 429960. * bin/eselect.in (EROOT): Remove trailing slash from ROOT only if EPREFIX is set. This guarantees that EROOT is equal to ROOT for empty EPREFIX. 2012-09-13 Ulrich Müller * configure.ac: Update version to 1.3.2. * Tagged 1.3.2 release. * bin/eselect.in (EROOT): Remove any trailing slash from ROOT before appending EPREFIX. 2012-09-12 Ulrich Müller * modules/profile.eselect (get_symlink_location): When both /etc/make.profile and /etc/portage/make.profile exist, prefer the latter. This follows the change of the default location in Portage and in stages. 2012-08-19 Ulrich Müller * modules/binutils.eselect (switch_profile): Fix typo in data path, bug 431898. 2012-06-27 Ulrich Müller * modules/binutils.eselect (find_targets): Properly quote variables to prevent false globbing, bug 423525. 2012-03-07 Ulrich Müller * doc/release-guide.txt: Update to reflect the transition from subversion to git. * doc/developer-guide.txt: Remove subversion keywords and don't use svn_date_to_version function in example module. 2012-02-18 Ulrich Müller * modules/modules.eselect (DESCRIPTION, MAINTAINER): Move behind inherit command and update description. * libs/default.eselect.in (do_version): Show version of eselect; show version of the module if it is available. (VERSION): Set default version to empty string. * modules/bashcomp.eselect (VERSION): * modules/binutils.eselect (VERSION): * modules/config.eselect (VERSION): * modules/cow.eselect (VERSION): * modules/editor.eselect (VERSION): * modules/env.eselect (VERSION): * modules/kernel.eselect (VERSION): * modules/locale.eselect (VERSION): * modules/modules.eselect (VERSION): * modules/news.eselect (VERSION): * modules/pager.eselect (VERSION): * modules/profile.eselect (VERSION): * modules/rc.eselect (VERSION): * modules/visual.eselect (VERSION): Don't assign an extra version for modules that are part of eselect proper. 2012-02-12 Ulrich Müller * configure.ac: Update version to 1.3.1. * Tagged 1.3.1 release. * modules/profile.eselect (get_repos): Fix regular expression for overlays, bug 403215. Thanks to Sergei Trofimovich . 2012-02-02 Ulrich Müller * libs/multilib.bash.in (ES_VALID_MULTILIB_DIRS): Add libx32. (list_libdirs): Scan filesystem for available libdirs, instead of parsing /etc/ld.so.conf, bug 401843. 2012-01-21 Ulrich Müller * doc/user-guide.txt: Document --brief and --colour options. Don't mention deprecated --no-colour option any more. * Makefile.am (AUTOMAKE_OPTIONS): Replace dist-bzip2 by dist-xz. * doc/release-guide.txt: Update. * configure.ac: Update version to 1.3. * Tagged 1.3 release. 2011-12-09 Zac Medico * libs/package-manager.bash.in (best_version, has_version) (get_repositories, get_repo_news_dir): portageq uses EROOT, bug 394187. This fixes "eselect news" for compatibility with >=sys-apps/portage-2.2.01.19833 (prefix branch), as well as mainline portage when installed in a prefix. 2011-10-29 Ulrich Müller * bin/eselect.in: New option --colour=, similar to the same option in emerge and ls commands. Spelling --color is recognised too. (es_do_list_options): Update accordingly. (ESELECT_OPTIONS): Remove unused global variable. * man/eselect.1: Document the --colour option. * misc/eselect.bashcomp (_eselect): Update. 2011-10-27 Ulrich Müller * modules/news.eselect (do_list): Display read/unread flags as one char only, in order to save some space. Show repository name in front of title. Bug 388233. * man/news.eselect.5: Update accordingly. 2011-09-25 Ulrich Müller * modules/editor.eselect (EDITOR_LIST): * modules/visual.eselect (EDITOR_LIST): Remove zile, bug 384451. * configure.ac: Remove --enable-dodgy-modules configure option. * modules/Makefile.am: Simplify. 2011-09-18 Ulrich Müller * libs/default.eselect.in (show_usage_message): Don't set IFS when calling describe_*_options. Fixes bug 382693. 2011-08-28 Ulrich Müller * modules/profile.eselect (find_targets, set_symlink, do_show) (do_list): Support profiles in overlays, bug 265264. Thanks to and for sending patches. (get_repos, get_repo_path): New functions. * modules/bashcomp.eselect: Code cleaned up. (find_targets): Simplified. (do_enable): Don't search for completion files in current working directory, bug 363481. Create a relative symlink. * doc/developer-guide.txt: Replace the example by a simplified version of the kernel module. Mention ROOT, EPREFIX, and EROOT variables, bug 380731. * modules/kernel.eselect: Clean up coding style. 2011-07-07 Ulrich Müller * configure.ac: Update version to 1.2.16. * Tagged 1.2.16 release. 2011-06-29 Ulrich Müller * modules/env.eselect (update_ldcache): Call ldconfig only for Linux/GNU and BSD systems. 2011-06-29 Michał Górny * modules/env.eselect (update_ldcache): Call ldconfig with '-X' to not update symlinks, bug 373343. 2011-06-25 Brian Harring * libs/package-manager.bash.in (package_manager, envvar) (best_version, has_version, get_repositories, get_repo_news_dir) (env_update): Add pkgcore support, bug 304011. 2011-05-02 Ulrich Müller * bin/Makefile.am (install-symlink-%): Make relative symlinks. Thanks to Fabian Groffen. 2011-03-15 Ulrich Müller * configure.ac: Update version to 1.2.15. * Tagged 1.2.15 release. 2011-03-13 Ulrich Müller * modules/profile.eselect: Support make.profile in both the /etc and the /etc/portage directory. (DESCRIPTION): Don't mention explicit path. (get_symlink_location): New function, sets MAKE_PROFILE variable. (do_show, do_set): Call get_symlink_location. (remove_symlink, set_symlink, do_show, do_set): Use MAKE_PROFILE instead of hardcoded path. 2011-03-10 Ulrich Müller * modules/news.eselect (read_item): Don't precede news item dir with ${ROOT}, fixes bug 358185. * doc/developer-guide.txt: Contributed modules should have a standard header. Eselect is distributed under GPL v2 or later. 2011-01-14 Ulrich Müller * configure.ac: Update version to 1.2.14. * Tagged 1.2.14 release. * modules/locale.eselect (LOCALE_ENVFILE): Rename file to agree with documentation in . 2011-01-13 Ulrich Müller * autogen.bash: * configure.ac: Update for automake 1.11 and autoconf 2.68. * modules/locale.eselect: New module, manages the LANG variable. Contributed by Matsuu Takuto in bug 351363. * modules/Makefile.am (safe_scripts): Add the new file. * modules/news.eselect (NEWS_DIR, find_items, write_item_list): Prefix NEWS_DIR with EROOT instead of separate EPREFIX and ROOT. 2010-11-27 Ulrich Müller * configure.ac: Update version to 1.2.13. * Tagged 1.2.13 release. 2010-11-26 Ulrich Müller * libs/package-manager.bash.in (package_manager, run_paludis) (envvar, best_version, has_version, get_repositories) (get_repo_news_dir): Use cave rather than paludis. Patch from Ciaran McCreesh in bug 346837. 2010-11-21 Ulrich Müller * configure.ac: Update version to 1.2.12. * Tagged 1.2.12 release. 2010-11-11 Ulrich Müller * modules/news.eselect (find_items): Sort items by their name, i.e. effectively by date. Bug 344655. (do_read): Don't exit the loop if the first read item is met. * man/news.eselect.5: Update. * modules/news.eselect (find_items, write_item_list): Add missing local variable declaration. 2010-08-26 Ulrich Müller * misc/eselect.bashcomp: Fix typo in local variables definition. 2010-07-27 Ulrich Müller * configure.ac: Update version to 1.2.11. * Tagged 1.2.11 release. 2010-03-21 Ulrich Müller * modules/news.eselect (do_read): Add --quiet (synonym --silent) option to suppress output. (describe_read_options): Update. * man/news.eselect.5: Document --quiet option. 2010-03-11 Ulrich Müller * modules/editor.eselect (EDITOR_LIST): * modules/visual.eselect (EDITOR_LIST): Remove pico. 2010-02-05 Ulrich Müller * configure.ac: Update version to 1.2.10. * Tagged 1.2.10 release. 2010-01-30 Ulrich Müller * configure.ac: Test for env-update program. * libs/Makefile.am (dosed): Substitute ENV_UPDATE. * libs/package-manager.bash.in (env-update): New function. * modules/env.eselect (do_update): Call env_update, bug 298742. * configure.ac: Remove --with-pm configure option. * libs/Makefile.am (dosed): Don't substitute PACKAGE_MANAGER. * libs/package-manager.bash.in (package_manager): Don't hardcode a default, use environment variable at run time only. 2009-12-31 Ulrich Müller * configure.ac: Update version to 1.2.9. * Tagged 1.2.9 release. 2009-12-29 Ulrich Müller * modules/env.eselect (do_update): Remove the "makelinks" option. The logic of this was always wrong, and mtime caching breaks with recent glibc versions. Bug 298742. (need_links, LDMTIMEDB): Function and variable removed. (describe_update_parameters, describe_update_options): Update. * modules/env.eselect (PATH_CLASS): Fix a typo, ADA_OBJECT_PATH should be ADA_OBJECTS_PATH. 2009-12-28 Ulrich Müller * modules/env.eselect (create_profile_env): Exclude LDPATH from profile.env, fixes bug 298789. (is_envfile, update_envvar_classes, create_profile_env) (create_ld_so_conf, create_prelink_conf, need_links) (update_ldcache, do_update): Fix quoting and other modifications to make it whitespace safe, bug 298742. 2009-12-04 Ulrich Müller * Makefile.am (MAINTAINERCLEANFILES): Remove config dir, since only simple files are allowed here. (maintainer-clean-local): Add rule for cleaning of config dir. * configure.ac: AC_OUTPUT with arguments is obsolete, use AC_CONFIG files instead. * libs/package-manager.bash.in (envvar, best_version, has_version) (get_repositories, get_repo_news_dir): Error checking was redundant, because package_manager cannot return unknown values. 2009-11-20 Ulrich Müller * configure.ac: Update version to 1.2.8. * Tagged 1.2.8 release. 2009-11-15 Ulrich Müller * libs/skel.bash.in (do_add): Respect EPREFIX also when called from within an ebuild environment. Patch from Fabian Groffen in bug 293317. 2009-11-13 Ulrich Müller * configure.ac: Update version to 1.2.7. * Tagged 1.2.7 release. * libs/multilib.bash.in (list_libdirs): Handle ROOT properly, fixes bug 289095. 2009-11-05 Ulrich Müller * configure.ac: Update version to 1.2.6. * Tagged 1.2.6 release. * bin/eselect.in (es_do_list_options): Mention "--brief" option. * libs/output.bash.in (is_output_mode): New function. (write_list_start, write_numbered_list_entry, write_numbered_list) (highlight_marker): Use it. * libs/editor-variable.bash.in (do_list): * modules/news.eselect (do_list, do_read): * modules/modules.eselect (do_list): Use it. * doc/developer-guide.txt: Document is_output_mode function. 2009-11-04 Ulrich Müller * configure.ac: Update version to 1.2.5. * Tagged 1.2.5 release. 2009-10-11 Ulrich Müller * libs/core.bash.in (eval): Don't redefine the eval builtin, because it is needed in the rc module. Fixes bug 224507. * modules/rc.eselect (do_show): Remove workaround for eval. * README: Update style notes. * bin/eselect.in (es_do_list_options, es_do_list_modules): Renamed from es_do_list-* to prevent invalid identifier errors in POSIX mode, bug 280191. Substitute underscore for hyphen in call. (es_do_help): Fix call for es_do_list_*. * modules/news.eselect (do_read): Suppress "no news" message in brief output mode, bug 288527. 2009-10-08 Ulrich Müller * configure.ac: Update version to 1.2.4. * Tagged 1.2.4 release. * modules/profile.eselect (set_symlink): Output a warning message if the target of the symlink is outside of EROOT. Suggested by Jeremy Olexa . * modules/news.eselect (do_read): Improve handling of removed news items: Display only a warning message instead of an error if an item's file doesn't exist. (do_list): Take default date from item name. Assume that the item has been removed if we cannot read its header. (mail_header): Really remove leading zeros from numeric month. 2009-10-05 Ulrich Müller * libs/path-manipulation.bash.in (relative_name): New function. * doc/developer-guide.txt: Document it. * modules/profile.eselect (do_show): Use EROOT instead of ROOT. (set_symlink): Use relative_name(). Fixes bug 287730. 2009-09-20 Ulrich Müller * configure.ac: Update version to 1.2.3. * Tagged 1.2.3 release. * libs/package-manager.bash.in (arch): Add case patterns for recognition of arm, hppa, m68k, ppc64, s390, and sh. Patch by Raúl Porcel in bug 285762. * doc/developer-guide.txt: * doc/release-guide.txt: * doc/user-guide.txt: Update documentation for eselect 1.2. Add a "local variables" block for Emacs. Reformat. * doc/overview.txt: Remove, because it is redundant with user-guide.txt (see also ChangeLog entry of 2005-06-13). * doc/Makefile.am (doc_files): Remove overview from list. * configure.ac: Update version to 1.2.2. * Tagged 1.2.2 release. 2009-09-18 Ulrich Müller * libs/output.bash.in (write_numbered_list): New -m option. It is used to specify a negative report message that is output for an empty list. * doc/developer-guide.txt: Document it. * modules/bashcomp.eselect (do_list): * modules/kernel.eselect (do_list): Call write_numbered_list with option -m, which simplifies the code. * modules/modules.eselect (do_list): Add support for brief output mode. For reasons of speed, don't source any modules in this case. * libs/default.eselect.in (do_usage): Don't reset output mode. * misc/eselect.bashcomp (_eselect): If called with one parameter, call "eselect --brief modules list" which should be much faster. * bin/eselect.in: Don't accept parameters for built-in actions, otherwise completion for "eselect help" won't work properly. 2009-09-17 Ulrich Müller * libs/manip.bash.in (svn_date_to_version): Remove both hyphens and slashes from the date string, so that the function works for CVS date strings too. * libs/package-manager.bash.in (get_news_dir_name): Remove deprecated and undocumented function. 2009-09-08 Ulrich Müller * configure.ac: Update version to 1.2.1. * Tagged 1.2.1 release. * modules/env.eselect (create_profile_env): Ignore leading "export" in env files, fixes bug 283932. Accept only valid shell identifiers as variable names. 2009-08-27 Ulrich Müller * configure.ac: Update version to 1.2. * Tagged 1.2 release. 2009-08-22 Ulrich Müller * bin/eselect.in (ESELECT_KNOWN_OPTIONS): Remove variable, as there is a case statement for all possible options anyway. * modules/news.eselect (do_list): Output read/unread tag first. 2009-08-19 Ulrich Müller * configure.ac: Update version to 1.2_rc1. * Tagged 1.2_rc1 release candidate. * bin/eselect.in (ESELECT_KNOWN_OPTIONS): Add --brief option, which will enable shorter output. Bug 154511. (es_do_help): Reset output mode to default. * libs/output.bash.in (set_output_mode): New function. (write_list_start): Suppress all output in "brief" output mode. (write_numbered_list_entry): Suppress numbers in "brief" mode. (highlight_marker): Suppress marker in "brief" mode. * libs/default.eselect.in (do_usage, do_help): Reset output mode to default. * libs/editor-variable.bash.in (do_list): * modules/bashcomp.eselect (do_list): * modules/kernel.eselect (do_list): * modules/news.eselect (do_list): Suppress "none found" messages in brief output mode. * man/eselect.1: Document the --brief option. 2009-08-18 Ulrich Müller * libs/output.bash.in (write_kv_list_entry): Fix indentation of second column in output. Simplify the code. (write_numbered_list_entry): Remove unused local declaration. (space): Declare n as local variable. (highlight, highlight_warning, highlight_marker): Use plain echo instead of "echo -e". (write_list_start, write_kv_list_entry) (write_numbered_list_entry): Don't change colours on restore if called with the -p option. (apply_text_highlights): Restore NORMAL_COLOUR if called with an empty first argument. 2009-08-15 Ulrich Müller * modules/news.eselect: Renamed from news-tng.eselect. * modules/Makefile.am (safe_scripts): Update. * man/news.eselect.5: Renamed from news-tng.eselect.5 and updated. * man/Makefile.am (man_MANS): Update. * configure.ac: Add support for Gentoo Alt/Prefix, define EPREFIX. * bin/Makefile.am (dosed): Substitute EPREFIX variable. * bin/eselect.in (EPREFIX, EROOT): New variables. * libs/editor-variable.bash.in (find_targets, read_env_value) (write_env_value, do_set): * libs/multilib.bash.in (list_libdirs): * libs/skel.bash.in (find_implems, is_active, switch_implem) (iface_do_show, do_list, do_show, do_add): * modules/bashcomp.eselect (find_targets, is_enabled, do_enable) (do_disable): * modules/binutils.eselect (BINUTILS_ENVFILE, find_targets) (find_versions, is_active, is_valid, switch_profile, do_list) (do_set, do_show): * modules/env.eselect (ENVPROFILE, LDCONFIG, PRELINK, LDMTIMEDB) (update_envvar_classes, create_profile_env, create_ld_so_conf) (create_prelink_conf, do_update): * modules/kernel.eselect (find_targets, remove_symlink) (set_symlink, do_show, do_list, do_set): * modules/news-tng.eselect (NEWS_DIR): * modules/profile.eselect (remove_symlink, set_symlink, do_show) (do_list, do_set): * modules/rc.eselect (source_rc_functions, list_runlevels) (find_unused_scripts, rc_runscript, do_add, do_delete, do_list) (do_show): Honour EPREFIX and EROOT. Partially based on patch from Fabian Groffen in bug 274760. * libs/Makefile.am (dosed): * libs/skel.bash.in (find_implems, is_active, switch_implem) (iface_do_show, do_add, do_list, do_show): Revert changes of 2009-05-15, as they would collide with proper Prefix support. 2009-08-13 Ulrich Müller * libs/editor-variable.bash.in (do_list): * libs/skel.bash.in (iface_do_list): * modules/bashcomp.eselect (do_list): * modules/binutils.eselect (do_list): * modules/kernel.eselect (do_list): * modules/profile.eselect (do_list): Call highlight_marker function for the active list entry. * libs/output.bash.in (highlight_marker): New utility function, mark a list entry as active/selected. * doc/developer-guide.txt: Document it. * libs/path-manipulation.bash.in (basename, dirname): Implement functions in a POSIX compliant way. Fixes bug 280598. 2009-08-10 Ulrich Müller * modules/news-tng.eselect (do_list): Align columns in output. 2009-08-08 Ulrich Müller * modules/bashcomp.eselect (do_enable): Create global directory with proper permissions. Fixes bug 279662. (describe_enable_options, describe_disable_options): List --global option before parameter. Fixes bug 279664. 2009-07-03 Ulrich Müller * modules/news-tng.eselect (do_list, do_read): Ignore all whitespace after the colon in header lines. 2009-06-27 Ulrich Müller * configure.ac: Update version to 1.1.2. * Tagged 1.1.2 release. 2009-06-20 Ulrich Müller * modules/news-tng.eselect (do_read): Support mbox output format. (day_of_week, rfc2047_encode, mail_header): New functions. (describe_read_options): Add the new --mbox option. * man/news-tng.eselect.5: Update man page. 2009-06-07 Ulrich Müller * libs/editor-variable.bash.in (do_set): Output a message reminding the user to source /etc/profile. * man/editor.eselect.5, man/visual.eselect.5, man/pager.eselect.5: Update man pages accordingly. 2009-06-06 Ulrich Müller * configure.ac: Update version to 1.1.1. * Tagged 1.1.1 release. * modules/kernel.eselect (sort_kernel_versions): New function. (find_targets): Sort kernel versions properly. Fixes bug 207889. 2009-06-05 Ulrich Müller * modules/rc.eselect (is_script): Symlinks are implicitly resolved, so no need to canonicalise. (do_start, do_stop, do_pause, do_reload, do_restart) (run_runscript): Move output message to calling functions. (do_list): Output colours also if only one runlevel is shown. (find_unused_scripts, show_script_status): New functions. (do_show): Add "--unused" option to show status of scripts that are not assigned to any runlevel; bug 271208. (describe_show_options): Document new option. * man/rc.eselect.5: Document new option for "show" action. 2009-06-04 Ulrich Müller * libs/package-manager.bash.in (package_manager): Test if selected package manager exists, and fall back to Portage if not. Rename variable ESELECT_PACKAGE_MANAGER to more generic PACKAGE_MANAGER. * libs/editor-variable.bash.in (EDITOR_LIST); Allow alternative "name:/path/to/binary" syntax for items. (find_targets, do_list, do_set, do_update): Update accordingly. 2009-05-27 Ulrich Müller * configure.ac: Update version to 1.1. * Tagged 1.1 release. * man/rc.eselect.5: Fix formatting for "show" action. * libs/default.eselect.in (do_usage): Show usage message only: our output may be parsed, e.g. by the bash-completion module. 2009-05-23 Ulrich Müller * libs/package-manager.bash.in (package_manager): Avoid hyphen in function identifier. * misc/eselect.bashcomp (_eselect): Remove --no-colour option; it is not needed since output is to a pipe. Use only POSIX basic regular expressions for sed. Add completion for "set", "enable", and "disable" subactions. 2009-05-21 Ulrich Müller * configure.ac: Update version to 1.1_rc3. * Tagged 1.1_rc3 release candidate. 2009-05-19 Ulrich Müller * modules/news-tng.eselect (do_read): Output a message if there are no news items to read. * bin/eselect.in: Don't hardcode /bin/bash; use configured path instead, as requested by Fabian Groffen . * bin/Makefile.am (dosed): Also substitute BASH. Use at signs throughout, instead of percent signs. * libs/config.bash.in, libs/core.bash.in, libs/default.eselect.in: * libs/editor-variable.bash.in, libs/manip.bash.in: * libs/multilib.bash.in, libs/output.bash.in: * libs/package-manager.bash.in, libs/path-manipulation.bash.in: * libs/tests.bash.in: Remove unnecessary shebang lines. * libs/Makefile.am (eselectlibs_DATA): Don't set executable bit for installed libs; therefore rename eselectlibs_SCRIPTS. (CLEANFILES): Update accordingly. * configure.ac: Update version to 1.1_rc2. * Tagged 1.1_rc2 release candidate. * libs/package-manager.bash.in (run_paludis): Renamed from paludis to prevent infinite loop. Fixes bug 270406. (envvar, best_version, has_version, get_repositories) (get_repo_news_dir): Use run_paludis instead of paludis. * README: Use consistent indentation for all source files. 2009-05-18 Ulrich Müller * configure.ac: Update version to 1.1_rc1. * Tagged 1.1_rc1 release candidate. 2009-05-16 Ulrich Müller * modules/kernel.eselect: Fix quoting, simplify syntax for array arguments, declare local variables, and other stylistic tweaks. 2009-05-15 Ulrich Müller * libs/package-manager.bash.in (envvar, best_version, has_version) (get_repositories, get_repo_news_dir): Directly call package manager commands with their arguments; no need to hide them in an extra layer of trivial functions. (get_news_dir_name): Deprecate, since it provides no additional functionality. Use get_repo_news_dir instead. (portageq): Function moved here from portage.bash.in. (paludis): New function, paludis wrapper with redirected stderr. (inherit): Don't inherit portage and paludis libs. * libs/paludis.bash.in, libs/portage.bash.in: Remove, after having verified that these libraries are not used by any module: neither internal nor in external app-admin/eselect-* packages. * libs/Makefile.am (eselectlibs_SCRIPTS, EXTRA_DIST): Update. * libs/Makefile.am (dosed): Also substitute prefix, datadir and sysconfdir. * libs/skel.bash.in (find_implems, is_active, switch_implem) (iface_do_show, do_add): Use @sysconfdir@ instead of /etc. (do_list, do_show): Use @prefix@ instead of /usr. (inherit): The portage lib is not used, so don't inherit it. * libs/package-manager.bash.in (arch): Add case patterns for ppc-macos. Taken from patch in Prefix overlay. 2009-05-05 Ulrich Müller * modules/news-tng.eselect (do_list): Display fallback values if title or date of a news item are not available. (do_read): Display an error message if the return status of read_item was bad. * modules/editor.eselect: * modules/visual.eselect (EDITOR_LIST): Add some alternatives. * libs/output.bash.in (init_columns): New function, determine width of terminal and set COLUMNS variable. (get_column_width): Remove. (write_kv_list_entry): Get screen width from COLUMNS variable. * bin/eselect.in: Call init_columns during initialisation. This way, stty must be called only once, and not for each row when outputting a table. 2009-05-01 Ulrich Müller * doc/developer-guide.txt: Update documentation. 2009-04-30 Ulrich Müller * modules/news-tng.eselect (find_items): Use space-separated list for "repos", instead of an array. (do_read): Also show "Translator" header lines. * modules/mailer.eselect: * man/mailer.eselect.5: The mailer module is no longer supported by MTA packages and therefore not functional, see bug 220473. Remove the module and its man page. * modules/Makefile.am (safe_scripts): * man/Makefile.am (man_MANS): Update Makefiles accordingly. 2009-04-28 Ulrich Müller * modules/mailer.eselect (do_list): Highlight selected target, patch by Karl Hakimian in 220473. * configure.ac: Fix test for greadlink. * configure.ac: Add --with-pm option for configuring the preferred package manager. Supply a default path for portageq. * libs/Makefile.am (dosed): Substitute PACKAGE_MANAGER. * libs/package-manager.bash.in (package-manager): Return package manager chosen at configure time. Overriding is possible by environment variable ESELECT_PACKAGE_MANAGER. 2009-04-27 Ulrich Müller * libs/package-manager.bash.in (get_repositories): In the Portage case, use "portageq get_repos". (get_repo_news_dir): Use "portageq get_repo_path". (best_version): Default to / if ROOT is empty, otherwise portageq doesn't work. Actually use Portage's and Paludis's "best_version" commands, not "has_version". Rename to agree with the ebuild helper; this shouldn't be a problem since the function was not working before. (has_version): Default to / if ROOT is empty. Remove redundant return statements. * libs/portage.bash.in (portageq): Expand "$@" not $*. (portage_get_repo_name, portage_get_repository): No longer needed. 2009-04-25 Ulrich Müller * man/binutils.eselect.5: * man/mailer.eselect.5: * man/profile.eselect.5: Use man macros. * modules/news-tng.eselect: Yet another module for reading GLEP 42 news items. Rewritten from scratch. * man/news-tng.eselect.5: New man page. * modules/Makefile.am (safe_scripts): * man/Makefile.am (man_MANS): Update. * libs/package-manager.bash.in (get_repo_news_dir): New function. (get_news_dir_name): Call get_repo_news_dir. * libs/Makefile.am (dosed): Remove Paludis substitution, it is unused since the change of 2008-01-28. 2009-04-23 Ulrich Müller * libs/package-manager.bash.in (package-manager): Rename ESELECT_PACKAGE_MANAGER_CACHE to ESELECT_PACKAGE_MANAGER and don't export it. Prefer Portage over Paludis. * libs/output.bash.in (get_column_width): Default to a width of 80 characters, not 79. * modules/modules.eselect (do_list): Assign the name of the module to ESELECT_MODULE_NAME, bug 220116. * modules/env.eselect (describe_update_parameters): Add "noldconfig" parameter. * man/eselect.1: Update, "list-modules" is now "modules list". * man/rc.eselect.5: Document latest changes in "show" action. * man/eselect.1: * man/bashcomp.eselect.5: * man/env.eselect.5: * man/kernel.eselect.5: * man/rc.eselect.5: Fix usage of bold and italic text. Fix title. Use man macros instead of low-level roff formatting. 2009-04-21 Ulrich Müller * libs/core.bash.in (do_action): Call "shift" twice instead of "shift 2" since there may be only one parameter. * libs/path-manipulation.bash.in (basename, dirname) (canonicalise): Quote arguments to make functions whitespace safe. * modules/modules.eselect (do_list, do_has): Fix quoting. * modules/rc.eselect (do_show): Add --all option. No need for an extra subshell; do_action already calls us from one. (describe_show_options): Document it. 2009-04-20 Ulrich Müller * libs/tests.bash.in (has): Quote $@ in order to expand positional parameters correctly. * modules/rc.eselect (source_rc_functions, get_runlevel): New functions for OpenRC (and baselayout-1) support. (RC_SVCDIR, rc_svcdir): Removed. (do_show): Function completely rewritten; use the common API of baselayout-1 and OpenRC. Thanks to Sebastian Günther in bug 180966. (describe_show, describe_show_parameters, describe_show_options): Document optional "runlevel" parameter of do_show(). * libs/editor-variable.bash.in: * modules/editor.eselect: * modules/visual.eselect: * modules/pager.eselect: New modules and library, managing the EDITOR, VISUAL and PAGER environment variables; bug 190216. * man/editor.eselect.5: * man/visual.eselect.5: * man/pager.eselect.5: New man pages. * libs/Makefile.am (eselectlibs_SCRIPTS, EXTRA_DIST): * modules/Makefile.am (safe_scripts): * man/Makefile.am (man_MANS): Add the new files. 2009-04-18 Ulrich Müller * modules/rc.eselect (do_delete): Don't die if the script is no longer in /etc/init.d/. Fixes bug 156866. (describe_add_parameters, describe_delete_parameters): Suppress newlines. * bin/eselect.in: Remove all alias definitions. Unset functions and variables that are known to cause trouble. Fixes bug 155814. 2009-04-17 Ulrich Müller * libs/core.bash.in (die): Eliminate pgrep call; just kill the main process and exit. * bin/eselect.in (es_do_list-modules): Use do_action for calling the module, not eselect. Quote "$@". (ESELECT_KNOWN_OPTIONS): Treat 'help' and 'version' options as if they were actions. Fixes bug 153890. (trap): Redirect exit message to stderr. * modules/modules.eselect: Don't inherit 'output' and 'tests', since they are already inherited by the main script, and for consistency with other modules. (describe_add, describe_add_parameters, do_add): Commented out. * libs/output.bash.in (colours): New function, initialise colour escape sequences. Don't initialise them in global scope any more. * bin/eselect.in: Call 'colours' if stdout is a tty, otherwise call 'nocolours'. * modules/env.eselect (is_envfile): Define POSIXLY_CORRECT for 'file' in order to dereference symbolic links. Bug 240402. 2009-04-16 Ulrich Müller * libs/output.bash.in (write_kv_list_entry): Fix logic for insertion of spaces between words, bug 260464. * libs/config.bash.in (store_config): Split config file content on newlines only, not on all whitespace. Fixes bug 219864. * misc/eselect.bashcomp (_eselect): Suppress 'Killed' message. Don't match regexps on escape sequences. Fixes bug 218557. * libs/core.bash.in (die): Suppress error messages from pgrep and kill, bugs 174354 and 264734. 2009-04-15 Ulrich Müller * modules/rc.eselect (do_add): Don't symlink into ROOT. Patch by Matthijs Kooijman in bug 204937. * libs/output.bash.in (get_column_width): Don't call stty if standard output is not a terminal. Bug 198461. 2009-04-14 Ulrich Müller * libs/output.bash.in (write_list_start): Add quotes to prevent globbing, fixes bug 232874. * bin/eselect.in (ESELECT_DATA_PATH): Remove trailing slant, fixes bug 203114. 2009-04-13 Ulrich Müller * libs/output.bash.in (COLOUR_NORMAL, COLOUR_BOLD, COLOUR_HI) (COLOUR_WARN, COLOUR_ERROR, COLOUR_LIST_HEADER) (COLOUR_LIST_LEFT, COLOUR_LIST_RIGHT): Initialise with tput, in a terminal independent way, bug 198461. * bin/eselect.in: Disable colour output if stdout is not a tty, bug 198461. 2009-04-08 Jeremy Olexa * modules/profile.eselect (do_show, do_list): Make 'eselect profile show' show the relative path. Patch by Thomas Bellman in bug 248487. * modules/profile.eselect (set_symlink): Allow parent profiles to be selectable, patch by Thomas Bellman in bug 248470. 2008-06-01 Ulrich Müller * man/binutils.eselect.5: Fix typo, bug 172636. * man/eselect.1: Fix man section, bug 172636. 2008-01-28 Piotr Jaroszyński * configure.ac, libs/paludis.bash.in: Check for paludis binary at runtime. 2007-12-02 Piotr Jaroszyński * NEWS: Merge NEWS from branch-1.0.x and add trunk section with current changes. 2007-12-01 Piotr Jaroszyński * NEWS: Add missing news entry for 1.0.10. 2007-11-30 Piotr Jaroszyński * libs/config.bash.in, modules/env.eselect, NEWS: Merge various changes from 1.0.x branch. 2007-11-27 Piotr Jaroszyński * libs/package-manager.bash.in, libs/paludis.bash.in, libs/portage.bash.in: Add stuff to be used by new eselect-news. 2007-09-21 Donnie Berkholz * libs/skel.bash.in: (#189942) Allow resetting to the current implementation, so changes to the symlink map can propagate. 2007-03-08 Mike Kelly * man/Makefile.am: Really really really fix parallel install. 2007-02-28 Mike Kelly * bin/Makefile.am, man/Makefile.am: Undo the most recent "fix". 2007-02-27 Danny van Dyk * bin/Makefile.am, man/Makefile.am: Fix symlink creation for real now. * modules/env.eselect: Fix parsing of *_SEPARATED. 2007-01-29 Mike Kelly * bin/Makefile.am, man/Makefile.am: Fix symlink creation. + Fixes: #163915 2007-01-15 Mike Kelly * bin/Makefile.am: Really fix parallel install. From r353 in branches/branch-1.0.x/ + Fixes: #162008 2006-11-13 Mike Kelly * configure.ac, libs/Makefile.am, Makefile.am, modules/Makefile.am: Fix distcheck. 2006-10-28 Danny van Dyk * bin/eselect.in: Add a new envvar for the default modules path. * libs/core.bash.in: Make inherit() remember the libs it already processed and don't source them again. * modules/modules.eselect: Clean up a bit. Change add action to not check for root. 2006-10-28 Mike Kelly * modules/Makefile.am: Add modules.eselect to Makefile.am. 2006-10-28 Mike Kelly * modules/modules.eselect: Add a new module, for listing, querying, and installing eselect modules. 2006-10-24 Danny van Dyk * libs/core.bash.in: Fix bug #152662. Thanks to Roy Marples for finding and Mike Kelly for reporting it. * modules/env.eselect: Fix bug #152318. Thanks to Jason Stubbs for report and patch. 2006-10-22 Danny van Dyk * configure.ac: Changed version to 1.1.0. (development branch) * libs/config.bash.in: Fix quotation in load_config(). 2006-10-21 Danny van Dyk * modules/env.eselect: Clean up and fix bug #151701. * libs/paludis.bash.in, libs/package-manager.bash.in: Fix some bugs and general cleanup. Complete package manager abstraction. * doc/developer-guide.txt: Update developer documentation to reflect API changes. 2006-10-03 Danny van Dyk * modules/binutils.eselect: Finally fixed bug #149627. * libs/paludis.bash.in: Fixed typo. * configure.ac: Changed version to 1.0.6. * libs/core.bash.in: Tweaked die function to have a nicer output. * Tagged 1.0.6 release. 2006-10-01 Danny van Dyk * modules/binutils.eselect: Fixed bug #149627. Thanks to Charlie Shepherd for finding this. 2006-09-22 Danny van Dyk * modules/profiles.eselect: Fixed bug #148534 by inheriting package-manager. Thanks to Mike Kelly . 2006-09-20 Danny van Dyk * libs/config.bash.in: Fixed whitespaces and bug #147930. * libs/core.bash.in: Enhanced die function to SIGKILL eselect if SIGTERM failed. 2006-09-19 Mike Kelly * modules/Makefile.am: Remove the vi.eselect module, so it isn't distributed with the main eselect code. 2006-09-17 Danny van Dyk * man/rc.eselect.5: Fixed bug #144882. 2006-08-30 Danny van Dyk * libs/output.bash.in: Fix bug #140633 by adding missing quoting in write_{kv,numbered}_list_entry. * modules/rc.eselect: Add 'reload' action as requested in bug #144152. 2006-08-26 Danny van Dyk * Tagged 1.0.5 release. 2006-08-17 Donnie Berkholz * libs/skel.bash.in: Small usability tweak -- change printed references from "libdir" to "library directory." 2006-08-17 Donnie Berkholz * libs/skel.bash.in: Ensure that there are implementations available in a given libdir before executing code that assumes so. Reported by Danny van Dyk. Add some comments in this area too, since the code can take a little time to parse. * ChangeLog: Change a couple references to my old nick. 2006-08-04 Danny van Dyk * modules/kernel.eselect: Fix Bug #141106: list action doesn't highlight currently the currently selected sources. 2006-08-03 Danny van Dyk * Tagged 1.0.4 release. 2006-08-02 Danny van Dyk * libs/paludis.bash.in, libs/package-manager.bash.in: Remove paludis-repo(). Fix paludis-envvar(). Finish envvar() unction. * configure.ac: Set version to 1.0.4. * modules/config.eselect, modules/binutils.eselect: Convert to envvar(). * autogen.bash: Fix autogen.bash to be able to use autoconf-2.60. 2006-07-16 Danny van Dyk * libs/paludis.bash.in, libs/package-manager.bash.in: Convert to envvar() call. envvar() now needs a package qualifier as first parameter. * autogen.bash: New autogen tool to correctly use autoconf-2.60. 2006-07-15 Donnie Berkholz * libs/skel.bash.in: Fix check for whether implementations are available before attempting to switch to them. This fixes switching based on name rather than number. 2006-07-03 Danny van Dyk * Tagged 1.0.3 release. 2006-07-01 Danny van Dyk * libs/portage.bash.in, libs/paludis.bash.in, libs/package-manager.bash.in, libs/Makefile.am, configure.ac: Added support for other package managers than portage. Public functions are part of package-manager.bash. paludis.bash and portage.bash provide private backend functions. * modules/profile.eselect: Marked as portage-only module. * modules/binutils.eselect: Change from inherit portage to inherit package-manager. * modules/rc.eselect: Fix bug in list_runlevels(). Respect setting of ${svcdir} in /etc/rc.conf. Add support to show() runlevels other than the current. 2006-06-18 Donnie Berkholz * libs/skel.bash.in, libs/Makefile.am, doc/developer-guide.txt: Add a new skel.bash library for easy implementation of the simpler cases of switching, and document it. * modules/Makefile.am, man/Makefile.am: The new blas/cblas/lapack modules will be installed as standalone packages, so remove them from Makefile.am files. 2006-06-11 Danny van Dyk * modules/env.eselect: Fixed handling of files in /etc/env.d/ which are untruly detected as non-plain-text by file utility (see bug #130098). Fixed generation of /etc/profile.csh (see bug #136111). Thanks to Patrick MacLean for both fixes. 2006-04-14 Danny van Dyk * libs/config.bash: Fixed creation of empty configfile. * modules/kernel.eselect: Applied enhancement patch by Diego Petteno . kernel.eselect can now be called using 'uname -r' as an argument. See bug #128703. * Tagged 1.0.2 release. 2006-04-03 Danny van Dyk * modules/env.eselect: Don't die if ${ROOT}/etc/profile.env does not exist. 2006-04-01 Danny van Dyk * Tagged 1.0.1 release. * configure.ac: Fixed substitution of CANONICALISE. * modules/env.eselect: Fixed calls to canonicalise(). * modules/kernel.eselect: Fixed output of show action. 2006-03-31 Danny van Dyk * configure.ac: Fixed some BSD issues in regard to CANONICALISE. Thanks to Diego Petteno for the patch. 2006-03-30 Danny van Dyk * modules/binutils.eselect: Cleaned up the Coding Style a bit. * libs/path-manipulation.bash.in, doc/developer-guide.txt, configure.ac: Added support for the canonicalise function, a wrapper to either GNU readlink or realpath. * modules/binutils.eselect, modules/blas.eselect, modules/config.eselect, modules/env.eselect, modules/kernel.eselect, modules/lapack.eselect, modules/mailer.eselect, modules/profile.eselect, modules/rc.eselect: Converted to use canonicalise() instead of readlink -f. This ensure portability of eselect to *BSD. 2006-03-09 Danny van Dyk * modules/binutils.eselect, man/binutils.eselect.5: Added show action. * configure.ac: Updated version to 1.0.1 for pending release. 2006-03-08 Danny van Dyk * modules/env.eselect: Fixed a typo (chmod g+r instead of chmod a+r). * modules/blas.eselect, modules/lapack.eselect: Added option descriptions for action 'set'. * modules/env.eselect: Added FreeBSD patch written by Diego Petteno. * man/binutils.eselect.5, man/blas.eselect.5, man/env.eselect.5, lapack.eselect.5, man/rc.eselect.5: Synchronized the manpages with the current state of the repository. 2006-03-04 Danny van Dyk * modules/rc.eselect: Fixed a bug in the is_script() function. With this change the 'show' action works again. * modules/kernel.eselect: Fixed trailing slashes in the 'show' action. 2006-03-01 Danny van Dyk * modules/env.eselect: Fixed bug #124472. env.eselect now uses a temporary file, honours a symlinked profile.env and fixes permissions on the final profile.env. 2006-02-09 Ciaran McCreesh * Tagged 1.0 release. * libs/core.bash.in: Fix die filenames, thanks to Donnie Berkholz. 2005-12-18 Danny van Dyk * modules/env.eselect: Fixed bug #114778: restrict load_config() to textfiles with proper contents. * libs/multilib.bash.in: Fixed bug #114274: don't rely on a hardcoded table of libdirs but scan ld.so.conf for them instead. * modules/blas.eselect, modules/lapack.eselect: Fixed bug #115548: make commands list, show and set scan if scan hasn't been previously run. 2005-12-17 Ciaran McCreesh * modules/output.bash.in: Fix nocolour, Gentoo bug #115677. 2005-12-06 Danny van Dyk * modules/rc.eselect: Fixed Bug in is_script() to detect symlinked init scripts like net.ethX -> net.eth0 properly. 2005-11-17 Aaron Walker * docs/developer-guide.txt: Fix title underline length since the length of the title changed (add_config => append_config). 2005-11-16 Danny van Dyk * libs/config.bash.in, docs/developer-guide.txt: Changed add_config() to append_config(). Function now doesn't append data if it occurs already in the value. * libs/multilib.bash.in: Removed lib from list of amd64 libdirs. * modules/blas.eselect, modules/lapack.eselect: Added support for MKL72. Some cleanup of Bugs and untidy work. 2005-11-01 Ciaran McCreesh * bin/eselect.in: Add read- and -reader symlink module name decoding voodoo options. 2005-10-30 Aaron Walker * libs/output.bash.in: Updated write_kv_list_entry with several bug fixes: now handles args with leading whitespace appropriately, doesn't append a ' ' onto the end of lines, displays the value on the next line if key is too long. 2005-10-19 Aaron Walker * libs/output.bash.in: Use ${#indent} instead of a literal '28'. * Tagged 1.0_rc1 release. * libs/output.bash.in: Modified write_kv_list_entry to properly wrap lines that are longer than the current terminal width. * man/bashcomp.eselect.5: Added --global as a possible option for the 'list' action. * modules/env.eselect: Added describe_update_options and describe_update_parameters. 2005-10-18 Aaron Walker * modules/rc.eselect: Added missing space after the '1' in "[[ ${#@} -gt 1]]" which caused an unexpected EOF in do_restart(). * configure.ac, Makefile.am, doc/Makefile.am: Added check for rst2html and don't assume it is installed as 'rst2html.py' as most other distro's/OS's install it without the .py extension. Also, don't bail if portageq isn't found as eselect is supposed to be usable even on non-Gentoo systems. * libs/output.bash.in, doc/developer-guide.txt: Added write_warning_msg function. Similar to write_error_msg but uses "!!! Warning" and ${COLOUR_WARN}. * libs/portage.bash.in: Have arch() use new write_warning_msg to print a warning and return 1 if it cannot determine the arch instead of die()'ing as the caller may want to do something anyways and exit successfully ("eselect profile set --force" for example). Also fixed errant 'i' in '[[ -z ${ROOT}i ]]' and also fixed indenting. * modules/profile.eselect: Check the return value of arch() and find_targets() and bail if necessary. 2005-10-17 Aaron Walker * configure.ac: Update version to 1.0_rc1 for pending release. * Makefile.am, man/Makefile.am, bin/Makefile.am: move 'symlinks' variable declaration to top-level Makefile.am so both man/Makefile.am and bin/Makefile.am can use it to generate symlinks (ie foo-config -> eselect and foo.eselect.5 -> foo-config.1). * modules/profile.eselect: Updated find_targets function to accept an optional argument, portdir, so that if specified it doesn't need to invoke portageq. This prevents portageq from being invoked twice when the 'set' action is executed. * modules/kernel.eselect, modules/binutils.eselect, modules/mailer.eselect: Add describe_set_options and describe_set_parameters. * modules/bashcomp.eselect: Add describe_list_options since it also accepts --global. * man/kernel.eselect.5: Added manual page for kernel.eselect. * man/profile.eselect.5: Fixed a typo. * modules/rc.eselect: Bail on actions that require parameters when the user doesn't specify them. Also added describe_action_options and describe_action_parameters for each action that requires a parameter. Also fixed vim ft s/ebuild/eselect/. * bin/eselect.in: Bail if user specifies an invalid global option instead of just ignoring it. 2005-10-16 Ciaran McCreesh * modules/vi.eselect: Tidy up. * doc/developer-guide.txt: Documentation for options and parameters. * modules/bashcomp.eselect, modules/profile.eselect, modules/cow.eselect: Implement actions and parameters. * libs/default.eselect.in: Add describe_action_options and describe_action_parameters support for default help action. * libs/output.bash.in: Add -p option to write_ things. * autogen.sh -> autogen.bash, doc/release-guide.txt, Makefile.am: Make autogen work on systems with weirder autotools setups. 2005-10-16 Danny van Dyk * modules/rc.eselect: Fixed Bug #106540. 2005-10-05 Aaron Walker * modules/profile.eselect: Add a --force option to 'set' sub-command so that users can force a profile set even if the profile is not recognized as valid. * man/profile.eselect.5: Document --force. 2005-09-11 Aaron Walker * libs/multilib.bash.in: Don't use absolute paths to executables! 2005-09-10 Danny van Dyk * bin/eselect.in: Fixed Bug in usage of has(). Thanks to Sven Wegener for spotting this. * libs/portage.bash.in, libs/Makefile.am, configure.ac, modules/binutils.eselect, modules/config.eselect, modules/profile.eselect: Added portage library, moved profile.eselect:get_arch() to portage.bash:arch(). * doc/developer-guide.txt: Changed documentation according to API changes (inherit / core.bash-split). 2005-09-05 Danny van Dyk * libs/core.bash.in: Added inherit() function that allows dynamic and individual sourcing of libraries for each module. * bin/eselect.in: Removed sourcing of all available libraries and set up default libraries to inherit. * libs/core.bash.in, libs/path-manipulation.bash.in, libs/Makefile.in: Moved basename() and dirname() to a new separate library. * libs/core.bash.in, libs/test.bash.in: moved has() and is_function() to tests library. * modules/binutils.eselect, modules/blas.eselect, modules/env.eselect, modules/lapack.eselect: Added necessary inherit lines. 2005-09-04 Danny van Dyk * modules/blas.eselect: Fixed a bug about setting implementation to reference in case we had an active C implementation already. Storing configuration will now be handled after the setup_*() step. * modules/lapack.eselect: Storing configuration will now be handled after the setup_*() step. * modules/rc.eselect: Fixed a 'file not found' bug on bogus baselayouts thanks to Mike Doty . 2005-08-31 Danny van Dyk * modules/kernel.eselect: Fixed bug #104354. kernel.eselect now looks only for linux-kernel directories w/o listing source directories of additional drivers. 2005-08-08 Aaron Walker * man/bashcomp.eselect.5: Add missing description of --global flag. 2005-07-25 Danny van Dyk * modules/Makefile.am: Moved binutils.eselect out of dodgy-scripts. * modules/binutils.eselect: Removed outdated comments. * Tagged 0.9.6 release. * NEWS: Added 0.9.6 release news. * configure.ac: Updated version number. * man/Makefile.am, man/binutils.eselect.5: Added manpage for binutils module. * modules/binutils.eselect, modules/env.eselect: Check for sane parameters and root access. 2005-07-23 Danny van Dyk * libs/config.bash.in: Fixed a condition in store_config as it needs at least 2 parameters, not 3. * modules/env.eselect: Removed check on storing empty vars. Added support for updating ld.so.cache. Added a mtime database for all items of LDPATH. Fixed last bugs that kept it in dodgy-scripts. * modules/Makefile.am: Removed env.eselect from dodgy-scripts. * man/env.eselect.5, man/Makefile.am: Added a manpage for env.eselect. * modules/binutils.eselect: Uses env.eselect now instead of env-update. Fixed condition for environment updates. 2005-07-19 Danny van Dyk * libs/core.bash.in: Fixed order of parameters. * modules/blas.eselect, modules/env.eselect, modules/lapack.eselect: Fixed all calls to has() due to change of parameter order. * modules/env.eselect: Tidied code up, add prelink.conf code. These file are now sanely created: /etc/profile.env, /etc/ld.so.conf, /etc/prelink.conf. * module/env.eselect: Removed LDPATH from inclusion into profile.env. 2005-07-16 Danny van Dyk * modules/env.eselect: Fixed a 'first element of array'-type bug. ld.so.conf creation is now fully functional. 2005-07-12 Danny van Dyk * modules/env.eselect, modules/Makefile.am: Added initial env module. 2005-07-03 Aaron Walker * libs/core.bash.in: Added dirname/basename wrapper functions which use bash instead of launching their external counterparts. * modules/bashcomp.eselect: Use basename instead of ${var##*/} constructs. 2005-06-19 Danny van Dyk * libs/output.bash.in: Watch out for escaped spaces and concatenate items accordingly. Fixes BUG #95886. * modules/binutils.eselect: Removed the echo before each ln call to enable it. Fixed the order of is_active() and loading of VERSION and TARGET. Added a check on whether the selected profile exists in /etc/env.d/binutils/. 2005-06-18 Aaron Walker * Tagged 0.9.5 release. * acinclude.m4: Added ES_PROG_GNU_SED macro for checking the path to GNU sed. This allows eselect to work on platforms where GNU sed is "gsed" not "sed". * configure.ac: Update version; added call to our new ES_PROG_GNU_SED macro. * libs/core.bash.in: Added 'sed() { @SED@ $* ; }' so that everything else transparently uses GNU sed. * libs/output.bash.in: Fixed typo in write_kv_list_entry() that caused misaligned value text. * bin/eselect.in: Added missing 'shift' when unrecognized global options are encountered. Otherwise an infinite loop occurs if a user specifies one. Also added es_do_list-options() and updated es_do_help() to call it. * bin/Makefile.am: Add bashcomp-config to symlinks list. * doc/developer-guide.txt: Fixed headers so that it'll compile. * modules/bashcomp.eselect: Fixed bug if do_list is passed an argument besides --global. * man/eselect.1: updated usage info with global options. Added OPTIONS section where global options will be described. * README, man/profile.eselect.5: Fixed minor typo. * man/Makefile.am, man/bashcomp.eselect.5: Added manual page for bashcomp.eselect. * misc/eselect.bashcomp: Parse 'eselect help' instead of 'eselect list-modules' so that we can pick up supported global options and add them to possible completions. This means we *never* will have to edit this file when we add new global options. * Makefile.am: Added html target to generate HTML for TODO and README in addition to those in doc/. * modules/blas.eselect, modules/lapack.eselect: Don't hardcode the path to readlink. Also, fixed a few libblas -> libcblas typo's on Kugelfang's behalf. 2005-06-17 Danny van Dyk * libs/output.bash.in: Moved back to use COLOUR_* envvars instead of a function, as the latters slows down eselect. Also, write_kv_list_entry() and write_numbered_list_entry() now use space(). * bin/eselect.in: Introduced new var which holds all known global options. The global option parser now checks for those. 2005-06-16 Aaron Walker * misc/eselect.bashcomp: Updated to take global options into consideration. * bin/eselect.in: recognize the us'ian --no-color in addition to --no-colour. * libs/output.bash.in: fixed bug in nocolour handling that caused literal interpretation of '*' in $(highlight '*') thus causing the contents of the ${PWD} to be displayed instead. * doc/release-guide.txt: Removed the now irrelevant section on doing the release on berlios. 2005-06-15 Shyam Mani * doc/developer-guide.txt: Removed redundant sections and fixed up a bit of RST. This will be the version that initial GuideXML will sync with. 2005-06-15 Aaron Walker * modules/bashcomp.eselect: Rewrote most of the module. Removed do_show() since do_list now correctly identifies currently enabled completions. Also do_enable/do_disable now work with list numbers as they should. 2005-06-13 Aaron Walker * doc/release-guide.txt: Updated to mention updating configure.ac version number. 2005-06-13 Danny van Dyk * Tagged 0.9.4 release. 2005-06-13 Shyam Mani * doc/overview.txt: Removed, since it is obsolete. * doc/user-guide.txt: Updated with info which was in overview. 2005-06-12 Danny van Dyk * modules/rc.eselect: Fix hardcoded path to ln. * libs/config.bash.in: Restructured functions to take a filename as first argument. * modules/blas.eselect,modules/lapack.eselect: Fixed modules to respect new syntax of *_config functions. * doc/developer-guide.txt: Documented new behaviour of *_config functions. * modules/blas.eselect,modules/lapack.eselect,modules/profiles.eselect: The list action now marks active options with a highlighted *. * modules/binutils.eselect: Added initial and unfunctional version of binutils.eselect. 2005-06-08 Danny van Dyk * bin/eselect.in: Added handling of global options in main code. * libs/core.bash.in: Removed COLOUR_* vars. * libs/output.bash.in: Added function colours() which replaces all ${COLOURS_*} uses and respects the --no-colour option. * docs/developer-guide.txt,docs/user-guide.txt: Added reference to global options and --no-colour. 2005-06-07 Danny van Dyk * Renamed to 'eselect'. * Moved to Gentoo infrastructure. 2005-05-26 Danny van Dyk * modules/rc.eselect: Added actions start, stop, restart and pause. 2005-05-16 Ciaran McCreesh * bin/Makefile.am: Install symlinks for kernel-config, profile-config, rc-config * libs/output.bash.in: Make highlighting work with bash-2. * Tag 0.9.3 release. * doc/overview.txt, doc/Makefile.am: Add an 'overview' document. * configure.ac, modules/Makefile.am: Add --enable-dodgy-modules to install incomplete / experimental things (config, cow, vi). 2005-05-16 Tom Martin * modules/mailer.eselect: Handle no available targets. Mark the currently active profile when doing list. 2005-05-15 Aaron Walker * man/Makefile.am: Add missing manual page. 2005-05-15 Ciaran McCreesh * modules/config.eselect, modules/cow.eselect, modules/mailer.eselect, modules/lapack.eselect, modules/bashcomp.eselect, modules/vi.eselect, modules/kernel.eselect, modules/profile.eselect, modules/blas.eselect, modules/rc.eselect: Switch vim modelines to use eselect rather than ebuild as the filetype. * modules/kernel.eselect: Handle no available targets. Mark the currently active kernel symlink when doing list. * libs/core.bash.in: Don't allow eval, since it's evil and leads to horridly broken code. 2005-05-14 Aaron Walker * libs/core.bash.in: Updated do_action() to display the correct usage message depending on how eselect was invoked. 2005-05-14 Ciaran McCreesh * modules/mailer.eselect, modules/vi.eselect, modules/kernel.eselect, modules/profile.eselect: Switch to use is_number. * modules/mailer.eselect: Make 'set by number' work. 2005-05-14 Elfyn McBratney * bin/eselect.in: Support both -update and -updater suffixes. 2005-05-14 Danny van Dyk * modules/rc.eselect: Do not show files ending in '~'. Added to the Makefile.am, too. 2005-05-12 Danny van Dyk * modules/mailer.eselect, modules/blas.eselect, modules/lapack.eselect: Use SVN_DATE. * module/rc.eselect: Added module rc. * man/rc.eselect.5: Added manpage for module rc. * modules/blas.eselect: Add preliminary support for "threaded-ATLAS". 2005-05-10 Aaron Walker * modules/profile.eselect, modules/bashcomp.eselect: Use SVN_DATE. 2005-05-10 Ciaran McCreesh * autogen.sh: Make config dir if it's not there already. * man/eselect.1: Include note about full docs. * doc/developer-guide.txt: Document manip functions. * modules/config.eselect, modules/cow.eselect, modules/vi.eselect, modules/kernel.eselect: Update to use SVN date as the version number. * libs/manip.bash.in, libs/Makefile.am, bin/eselect.in: Add manip library for text manipulation functions. svn_date_to_version will convert an SVN date string into a nice VERSION number. 2005-05-09 Aaron Walker * misc/eselect.bashcomp: Parse list-modules/usage instead of relying on the assumption that the default action will give us what we want. 2005-05-09 Ciaran McCreesh * configure.in -> configure.ac, autogen.sh: Switch to automake 1.9. * TODO: Add TODO file. Future changes to this file won't go in to this ChangeLog. * AUTHORS, README: Move authors into the AUTHORS file. * INSTALL: Add INSTALL file as per GNU rules. * doc/developer-guide.txt: Update with new functions. * doc/release-guide.txt: Add in an RST version of Aaron's "how to do releases" document. * Merge from branches/ciaranm/config: * bin/eselect.in: Better prefix/suffix support. Now recognises prefixes config-, update-, manage- and suffixes -config, -update, -tool, -manager. * libs/output.bash.in, libs/core.bash.in: Add highlight_warning function. * bin/eselect.in, libs/tests.bash.in, libs/Makefile.am: Add tests library. Currently one function, is_number. * libs/default.eselect.in: Allow show_extra_help_text as part of the default help action. Show extra usage message if appropriate. * modules/config.eselect, modules/Makefile.am: Add initial version of the config plugin. Not production ready. 2005-05-08 Aaron Walker * Makefile.am: no foreign. * Tag 0.9.2 release. * configure.in: Update version (0.9.2). * modules/profile.eselect: Re-fix profile module since the profile-symlink -> profile move reverted the changes. * modules/bashcomp.eselect: do_show should return 0. * bin/eselect.in, bin/Makefile.am: Use %VERSION%. 2005-05-08 Ciaran McCreesh * libs/output.bash.in, libs/core.bash.in: Add in somewhat experimental text highlighting functionality. * doc/developer-guide.txt: Document highlight function. 2005-05-08 Danny van Dyk * modules/blas.eselect: update -> scan transition complete. * modules/lapack.eselect: update -> scan. Fixed directory settings for lapack-atlas and lapack-reference. 2005-05-08 Tom Martin * modules/mailer.eselect: Fix find_targets. If the glob didn't match, it was interpreted as a literal string. Fix a stupid typo (findi_targets -> find_targets). 2005-05-07 Ciaran McCreesh * Tag for release 0.9.1 * configure.in: Version is now 0.9.1. * doc/user-guide.txt, doc-developer.txt: Clarify update and scan action definitions, update formatting and wording. 2005-05-07 Danny van Dyk * doc/user-guide.txt: Added a first draft of the user docs. 2005-05-07 Ciaran McCreesh * doc/developer-guide.txt: Fix formatting, typos. Add a bit more about how eselect works. * doc/Makefile.am: Make this much more generic. * misc/Makefile.am: Add Makefile.in to maintainer-clean targets. 2005-05-07 Tom Martin * man/mailer.eselect.5: Add a man page for mailer.eselect. * modules/mailer.eselect: Add a check_dirs() function for sanity checking /etc/mail/. 2005-05-07 Danny van Dyk * man/profile.eselect.5: Fixed typos. * doc/developer-guide.txt: Added descriptions for the multilib.bash and config.bash functions. 2005-05-07 Ciaran McCreesh * doc/: Add initial developer docs. * libs/core.bash.in: Fix bug in has so that it is consistent with portage syntax. * modules/blas.eselect, modules/lapack.eselect: Update to new has syntax. 2005-05-07 Aaron Walker * modules/profile-symlink.eselect: Fix sed to use current profiles.desc format. Also, ensure that explicitly specified profiles are actually valid for the host arch. * man/Makefile.am: Add missing manual pages. * man/profile.eselect.5: Add missing '.br'. * configure.in, Makefile.am, doc/Makefile.am: Added Makefile.am for doc/ with html target. 2005-05-07 Danny van Dyk * libs/output.bash.in: Added function 'space'. * libs/default.eselect.in: Fixed do_usage to filter 'action'. * man/blas.eselect: Added missing Section 'ACTION: SET'. * man/lapack.eselect: Added a manpage for the lapack module. * man/profile.eselect: Added a manpage for profile. * modules/blas.eselect: Finalized this module. * modules/lapack.eselect: Added lapack module. 2005-04-25 Tom Martin * modules/mailer.eselect: Added mailwrapper module. 2005-04-11 Aaron Walker * man/Makefile.am: forgot to add $(man_MANS) to EXTRA_DIST. * modules/profile.eselect: Added make.profile module. * modules/bashcomp.eselect: Fixed do_list to ignore *~. * misc/Makefile.am: Added Makefile.am. * misc/eselect.bashcomp: Added eselect command-line completion. 2005-04-10 Aaron Walker * man/Makefile.am: Added Makefile.am. 2005-04-07 Danny van Dyk * modules/blas.eselect: Added package information to outputs. * man/blas.eselect.1: Added a manpage for the blas module. 2005-04-04 Danny van Dyk * man/eselect.1: Added a rudimental manpage. 2005-03-24 Danny van Dyk * libs/config.bash.in: Fixed store_config(), added add_config(). * libs/core.bash.in: Added function has(). * libs/multilib.bash.in: Added multilib library. * modules/blas.eselect: Added blas module. 2005-02-22 Aaron Walker * modules/bashcomp.eselect: Added bashcomp module. 2005-02-22 Ciaran McCreesh * ChangeLog: Start keeping a ChangeLog. GNU format.