From 55104a5db89a707ffbe2811efcccece0b9c7c0d7 Mon Sep 17 00:00:00 2001 From: Ulrich Mueller Date: Fri, 11 Dec 2009 16:46:23 +0100 Subject: Remove conditionals for kdebuild-1. Signed-off-by: Ulrich Mueller --- names.tex | 106 ++++++++------------------------------------------------------ 1 file changed, 13 insertions(+), 93 deletions(-) (limited to 'names.tex') diff --git a/names.tex b/names.tex index d746095..2ee5089 100644 --- a/names.tex +++ b/names.tex @@ -60,38 +60,9 @@ This may optionally be followed by one of \t{[a-z]} (a lowercase letter). This may be followed by zero or more of the suffixes \t{\_alpha}, \t{\_beta}, \t{\_pre}, \t{\_rc} or \t{\_p}, which themselves may be suffixed by an optional integer. -\IFKDEBUILDELSE -{ - \featurelabel{scm} \label{scm-versions} In ebuilds using EAPIs listed in - table~\ref{tab:scm-table} as requiring support for the \t{-scm} suffix, the preceding version - syntax may be either replaced or suffixed by a \t{scm} part. If both a ``normal'' version and a - \t{scm} part are present, they must be separated by a hyphen. -}{ -} - This may optionally be followed by the suffix \t{-r} followed immediately by an integer (the ``revision number''). If this suffix is not present, it is assumed to be \t{-r0}. -\IFKDEBUILDELSE -{ - \begin{centertable}{EAPIs requiring \t{scm} support} \label{tab:scm-table} - \begin{tabular}{ l l } - \toprule - \multicolumn{1}{c}{\textbf{EAPI}} & - \multicolumn{1}{c}{\textbf{Requires \t{scm} support?}} \\ - \midrule - \t{0} & No \\ - \t{1} & No \\ - \t{kdebuild-1} & Yes \\ - \t{2} & No \\ - \t{3} & No \\ - \t{4} & No \\ - \bottomrule - \end{tabular} - \end{centertable} -}{ -} - \section{Version Comparison} Version specifications are compared component by component, moving from left to right, @@ -102,33 +73,14 @@ from which it was invoked. \begin{algorithm} \caption{Version comparison top-level logic} \label{alg:version-comparison} -\IFKDEBUILDELSE{ - \begin{algorithmic}[1] - \STATE let $A$ and $B$ be the versions to be compared - \IF{$A$ and $B$ both begin with \t{scm}} - \STATE compare revision components using Algorithm~\ref{alg:version-comparison-revision} - \ELSIF{$A$ begins with \t{scm}} - \RETURN $A>B$ - \ELSIF{$B$ begins with \t{scm}} - \RETURN $ABnn$} - \IFKDEBUILDELSE{ - \IF{$B$ has any suffixes and no letter, and its first suffix is \t{-scm}} - \RETURN $AB$ - \ENDIF - }{ - \RETURN $A>B$ - } + \RETURN $A>B$ \ELSIF{$AnnB$ - \ELSE - \RETURN $ABl$ using ASCII stringwise comparison} \RETURN $A>B$ \ELSIF{$AlBsn$} - \IF{$As_{Bsn}$ is of type \t{\_p} \IFKDEBUILDELSE{or \t{-scm}}{}} + \IF{$As_{Bsn}$ is of type \t{\_p}} \RETURN $A>B$ \ELSE \RETURN $AB$ @@ -232,14 +168,14 @@ from which it was invoked. \caption{Version comparison logic for each suffix} \label{alg:version-comparison-suffix-each} \begin{algorithmic}[1] \IF{$As_i$ and $Bs_i$ are of the same type (\t{\_alpha} vs \t{\_beta} etc)} - \STATE let $As'_i$ be the integer part of $As_i$ if any, otherwise \IFKDEBUILDELSE{as specified by Algorithm~\ref{alg:version-comparison-suffix-missingint}}{\t{0}} - \STATE let $Bs'_i$ be the integer part of $Bs_i$ if any, otherwise \IFKDEBUILDELSE{as specified by Algorithm~\ref{alg:version-comparison-suffix-missingint}}{\t{0}} - \IF{$As'_i>Bs'_i$, using integer comparison \IFKDEBUILDELSE{and with $\infty$ greater than any integer}{}} + \STATE let $As'_i$ be the integer part of $As_i$ if any, otherwise \t{0} + \STATE let $Bs'_i$ be the integer part of $Bs_i$ if any, otherwise \t{0} + \IF{$As'_i>Bs'_i$, using integer comparison} \RETURN $A>B$ - \ELSIF{$As'_iB$ \ELSE \RETURN $A