diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | man/Makefile.am | 5 | ||||
-rw-r--r-- | man/env.eselect.5 | 22 | ||||
-rw-r--r-- | modules/Makefile.am | 2 | ||||
-rw-r--r-- | modules/env.eselect | 10 |
6 files changed, 35 insertions, 10 deletions
@@ -6,7 +6,9 @@ ChangeLog for eselect 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. + 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. 2005-07-19 Danny van Dyk <kugelfang@gentoo.org> @@ -14,7 +14,7 @@ Targets for 1.0.0 certain designated actions. We'll also need library functions for menus and so on. See code in config module for a rough demo. (ciaranm) -* make these modules 'undodgy': binutils,config,env (all) +* make these modules 'undodgy': binutils,config (all) Possible Ideas ============== diff --git a/man/Makefile.am b/man/Makefile.am index ba0345e..81d0113 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -1,10 +1,11 @@ man_MANS = eselect.1 \ + bashcomp.eselect.5 \ blas.eselect.5 \ + env.eselect.5 \ lapack.eselect.5 \ profile.eselect.5 \ mailer.eselect.5 \ - rc.eselect.5 \ - bashcomp.eselect.5 + rc.eselect.5 EXTRA_DIST = $(man_MANS) MAINTAINERCLEANFILES = Makefile.in diff --git a/man/env.eselect.5 b/man/env.eselect.5 new file mode 100644 index 0000000..cd31f29 --- /dev/null +++ b/man/env.eselect.5 @@ -0,0 +1,22 @@ +.TH "ESELECT" "5" "April 2005" "Gentoo Linux" "eselect" +.SH "NAME" +env.eselect \- The environment and ld.so.cache management module for Gentoo's eselect +.SH "SYNOPSIS" +\fBeselect env\fR [\fBhelp\fR|\fBusage\fR] +.br +\fBeselect env\fR \fBupdate\fR +.SH "DESCRIPTION" +\fBeselect\fR is Gentoo's configuration and management tool. It features +modules that care for the individual administrative tasks. +.SH "ACTION: UPDATE" +\fBeselect env update\fR [\fImakelinks\fR] +.br +Parses all files in /etc/env.d/ for their environment variables and assembles them to one file (/etc/profile.{env,csh}). Further, it creates ld.so.conf and prelink.conf based on the collected vars. + +phi / # eselect env update +.br +Regenerating /etc/ld.so.cache... +.SH "AUTHOR" +Danny van Dyk <kugelfang@gentoo.org> +.SH "REVISION" +$Id$ diff --git a/modules/Makefile.am b/modules/Makefile.am index 7144c7e..52befd6 100644 --- a/modules/Makefile.am +++ b/modules/Makefile.am @@ -1,6 +1,7 @@ safe_scripts = \ bashcomp.eselect \ blas.eselect \ + env.eselect \ kernel.eselect \ lapack.eselect \ mailer.eselect \ @@ -11,7 +12,6 @@ dodgy_scripts = \ binutils.eselect \ config.eselect \ cow.eselect \ - env.eselect \ vi.eselect EXTRA_DIST = $(safe_scripts) $(dodgy_scripts) diff --git a/modules/env.eselect b/modules/env.eselect index f72c9d6..63642ed 100644 --- a/modules/env.eselect +++ b/modules/env.eselect @@ -186,15 +186,15 @@ do_update() { update_ldcache ${makelinks} # fix up ${ENVPROFILE} - # TODO: CSH support - #cp ${ENVPROFILE} ${ENVPROFILE/\/profile./\/csh.} + cp ${ENVPROFILE} ${ENVPROFILE/.env/.csh} sed -i \ -e "s/\"/'/g" \ -e 's/^\(.*=\)/export \1/' \ ${ENVPROFILE} - #sed -i \ - # -e 's/^\(.*=\)/setenv \1/' \ - # ${ENVPROFILE/\/profile./\/csh.} + sed -i \ + -e "s/\"/'/g" \ + -e 's/^\(.*=\)/setenv \1/' \ + ${ENVPROFILE/.env/.csh} } # vim: ft=eselect |