Opened 10 years ago

Closed 10 years ago

#3640 closed defect (fixed)

texinfo documentation script does not come back to right dictionary

Reported by: kamil.forys Owned by: lfs-book@…
Priority: normal Milestone: 7.6
Component: Book Version: SVN
Severity: minor Keywords: texinfo
Cc:

Description

At the bottom of this chapter we have a script:

cd /usr/share/info
rm -v dir
for f in *
do install-info $f dir 2>/dev/null
done

Every script in this book returns to /sources/<pkg-name>/ folder after execution, but this one does not. Could you fix it?

Possible solutions:

  • add 'cd -' at the end
  • add 'cd /sources/texinfo-5.2' at the end
  • process whole script in subshell ()
  • modification of rm argument and for loop

Change History (3)

comment:1 by bdubbs@…, 10 years ago

OK. Will change to:

pushd /usr/share/info
rm -v dir
for f in *
  do install-info $f dir 2>/dev/null
done
popd

comment:2 by chris@…, 10 years ago

Those commands are not meant to be run during the actual LFS build process - that's just saying that you might want to use those occasionally when some package not in LFS doesn't properly install its info files. Note the paragraph right above that command block.

That being said, perhaps those commands could instead be made into a script - use "cat >> /usr/bin/update-dir-file.sh << EOF" or something similar before them.

comment:3 by bdubbs@…, 10 years ago

Resolution: fixed
Status: newclosed

Fixed at revision 10643.

Note: See TracTickets for help on using tickets.