The original master branch, using shell and xslt, is back to subversion on
linuxfromscratch.org. The main development on this repo should be made in
python.
There were various line spacings, due to the fact that there was no
uniform convention for outputing linefeeds. In this commit, we try to
initiate a more uniform convention: any text output must begin with a
linefeed (if needed), and should not put one at the end. This means:
- using userinput instead of text() templates, and output a linefeed
at the beginning of each
- move ending linefeed to the beginning of several chunks
Each time we have to decide whether some instructions should be added for
stats, we have to test whether the current sect1 id attribute
is contained in the list of packages for which stats are requested. This
used to be done with a full test each time. We now have a Boolean that we
pass to all the templates that need to use it.
We want to change "make" to "make -j1" in installation instructions.
But sometimes, this may lead to wrong additions, like in qt5:
for file in moc uic rcc qmake -j1 lconvert lrelease lupdate; do ...
The fix is twofold:
- Move the code adding -j1 to from output-root to output-install. This
prevents adding -j1 in configuration instructions, where "make" is
usually a comment, not an instruction.
- Improve the code detecting "make": either the sentence contains ' make ',
or '\nmake ', or it starts with "make ", otherwise, we do not add -j1.
When the source package is of unknown type, we just make a scratch directory
${JH_PKG_DIR}-build, and copy the package and all the additional files there.
If there are no additional files, this shouldn't be done unconditionally...
The code used preceding/following -sibling, which cannot handle the case when
the screen tag is in a note. Make an XPath with preceding/following screen tags,
but restrict to those with a common sect2 ancestor.
Fix#13
This commit will turn the source into a Python package which can
be packaged using setup.py and/or installed via pip.
When installed, a new binary named 'jhalfs' will be placed in the
system PATH that serves as a wrapper for the main() method in the
jhalfs module. All the previous scripts are moved 'as-is' into the
module's path and will be packaged with the module.
At run-time 'jhalfs' creates a $HOME/.jhalfs directory (or
./.jhalfs if $HOME is unset), runs menuconfig as needed, symlinks
all the scripts included in the package to the .jhalfs dir and then
invokes `.jhalfs/jhalfs.sh run`
Attribute the copyright to the "jhalfs team", and put the names of the
6 contributors to date. May need to be changed if the number of contributors
increases...
Date: Tue Apr 16 13:31:09 2019 -0700
Improve testing of configuration file timestamp
* Provide a default value for each so that the comparisons of the time
of each file doesn't fail.
* Two commands in the Makefile could acceptably fail, but would
produce some ugly warnings.
Signed-off-by: Pierre Labastie <pierre.labastie@neuf.fr>