Le 24/05/2014 03:35, William Harrington a écrit :
> 
> On May 23, 2014, at 8:09 PM, William Harrington wrote:
> 
>> But what instance if any do we end up with a script name which needs
>> [0-9]\{1\}- replaced with nothing?

This comes from when I put "package management" into jhalfs. I needed a way to
insert the building of the package manager at some places in chapter 5 and 6
(I did that only for LFS). So, If I needed to put for example, dpkg, before
say 089-stripping, I named the script 089-1-dpkg. Of course, I needed to strip
the extra "1-" to get the package name, hence the sed. I guess I could just
change the sed to:

local script_name=`echo ${1} | sed -e 's@^[0-9]\{1\}-@@'`

(extra "^" at the beginning of the regexp), and xf86-xxx wouldn't be affected.
The only case would be with a package name beginning with #-, where # is a
digit, which is unlikely I think.
> 
> 
> In my current build xf86 is affected.
> Granted, jHALFS isn't used much for beyond LFS or CLFS? Am I the only one that
> does this?
> 
> 

I guess so... What I do is using the BLFS tools for building packages beyond
{,C}LFS. I may be the only one too... But you may want to have a look at them.

Regards
Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to