public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/eselect:master commit in: libs/, /, doc/
@ 2013-07-11  6:14 Ulrich Mueller
  0 siblings, 0 replies; only message in thread
From: Ulrich Mueller @ 2013-07-11  6:14 UTC (permalink / raw
  To: gentoo-commits

commit:     a4e6b08d41e6384cdfa86f39cb736a6f65a8e452
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  9 21:30:36 2013 +0000
Commit:     Ulrich Mueller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Jul  9 21:30:36 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=a4e6b08d

Move skel.bash documentation from developer guide to the library itself.

* doc/developer-guide.txt:
* libs/skel.bash.in: Move skel.bash documentation to the library
itself.

---
 ChangeLog               |  4 ++++
 doc/developer-guide.txt | 26 --------------------------
 libs/skel.bash.in       | 42 ++++++++++++++++++++++++++++--------------
 3 files changed, 32 insertions(+), 40 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2d8c614..4bc1be4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2013-07-09  Ulrich Müller  <ulm@gentoo.org>
 
+	* 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.
 

diff --git a/doc/developer-guide.txt b/doc/developer-guide.txt
index 9ecfdd9..23585b8 100644
--- a/doc/developer-guide.txt
+++ b/doc/developer-guide.txt
@@ -520,32 +520,6 @@ The ``get_repo_news_dir`` Function
 The ``get_repo_news_dir`` function returns the directory where to find
 GLEP 42 news items for a given repository.
 
-A Basic Skeleton Library
-========================
-
-The ``libs/skel.bash`` library provides for a simple eselect module to
-switch between implementations of anything that installs to a ``lib*``
-directory (i.e., lib, lib32, lib64). This will satisfy the requirements
-for most cases in which one must switch between providers of a certain
-library or any package installing a library.
-
-Creating a simple module
-------------------------
-
-To use this library, all you need to do is create an eselect module
-containing settings for the MODULE and IFACE variables. The MODULE
-variable is the name used to refer to the implementations being switched
-in help text. The IFACE variable indicates the subdirectory of
-/etc/env.d/ in which eselect files for these implementations will be
-stored.
-
-Each package must install a symlink map using the ``add`` action. The
-map must use relative symlinks, one source-destination mapping per line
-in the form ``source destination``. The source must be relative to the
-destination, not absolute. Instead of using ``lib`` or ``lib64`` etc.,
-you must use @LIBDIR@. The ``libs/skel.bash`` library detects the proper
-library directory at runtime.
-
 .. Local Variables:
 .. mode: rst
 .. fill-column: 72

diff --git a/libs/skel.bash.in b/libs/skel.bash.in
index a70baca..6559370 100644
--- a/libs/skel.bash.in
+++ b/libs/skel.bash.in
@@ -15,21 +15,35 @@
 # You should have received a copy of the GNU General Public License along with
 # eselect.  If not, see <http://www.gnu.org/licenses/>.
 
-# To use this library, you must set MODULE and IFACE.
-# MODULE is the name you use to refer to whatever it is that you're selecting
-# in help text and so forth.
-# IFACE is the subdirectory of /etc/env.d/ that eselect config files are stored
-# in for these packages.
+# This library provides for a simple eselect module to switch between
+# implementations of anything that installs to a "lib*" directory (i.e.,
+# lib, lib32, lib64). This will satisfy the requirements for most cases
+# in which one must switch between providers of a certain library or any
+# package installing a library.
 #
-# There is a file installed at /etc/env.d/$IFACE/$libdir/config containing the
-# CURRENT variable, which is set to the current eselect setting. Also, each
-# implementation installs a single file at /etc/env.d/$IFACE/$libdir/$implem.
-# This file contains a list of symlinks to be created in "source destination"
-# format. You must use relative symlinks. In other words, "source" must be
-# relative to "destination" but "destination" must be absolute. You may have
-# comments in the symlink map file -- any line containing a '#' is considered
-# a comment. One caveat about the symlink map -- instead of using "lib" or
-# "lib64" etc, you must use @LIBDIR@.
+# Creating a simple module:
+# To use this library, all you need to do is create an eselect module
+# containing settings for the MODULE and IFACE variables. The MODULE
+# variable is the name used to refer to the implementations being
+# switched in help text. The IFACE variable indicates the subdirectory
+# of /etc/env.d/ in which eselect config files for these implementations
+# will be stored.
+#
+# Each package must install a symlink map using the "add" action.
+# The map must use relative symlinks, one source-destination mapping per
+# line in the form "source destination". The source must be relative
+# to the destination, not absolute. In other words, "source" must be
+# relative to "destination" but "destination" must be absolute. One
+# caveat about the symlink map - instead of using "lib" or "lib64" etc.,
+# you must use @LIBDIR@. The "skel.bash" library detects the proper
+# library directory at runtime.
+
+# There is a file installed at /etc/env.d/$IFACE/$libdir/config
+# containing the CURRENT variable, which is set to the current eselect
+# setting. Also, each implementation installs a single file at
+# /etc/env.d/$IFACE/$libdir/$implem containing the symlink map. You may
+# have comments in the symlink map file - any line containing a '#' is
+# considered a comment.
 
 inherit config multilib tests
 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-11  6:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-11  6:14 [gentoo-commits] proj/eselect:master commit in: libs/, /, doc/ Ulrich Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox