Re: [blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-10 Thread Bruce Dubbs
Armin K. wrote: > On 10/10/2012 07:46 PM, Tobias Gasser wrote: >> Armin K. schrieb: >> >>> if [ $EUID = 0 ]; then make install >>> elif [ -x /usr/bin/sudo ]; then sudo make install >>> else su -c "make install" >>> fi >>> >>> Add it by default instead of "AS_ROOT make install", but explain how >>>

Re: [blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-10 Thread Armin K.
On 10/10/2012 07:46 PM, Tobias Gasser wrote: > Armin K. schrieb: > >> if [ $EUID = 0 ]; then make install >> elif [ -x /usr/bin/sudo ]; then sudo make install >> else su -c "make install" >> fi >> >> Add it by default instead of "AS_ROOT make install", but explain how >> should it be used and what

[blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-10 Thread Tobias Gasser
Armin K. schrieb: > if [ $EUID = 0 ]; then make install > elif [ -x /usr/bin/sudo ]; then sudo make install > else su -c "make install" > fi > > Add it by default instead of "AS_ROOT make install", but explain how > should it be used and what it really does. > > What do you say? some packages

Re: [blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-09 Thread Bruce Dubbs
Armin K. wrote: > On 10/09/2012 06:33 PM, Bruce Dubbs wrote: >> Armin K. wrote: >> >>> From what I see, your command would attempt to use either sudo or su >>> even if ran as root user. Maybe some kind of "am I root?" checking >>> should be done there before trying to check for sudo o

Re: [blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-09 Thread Armin K.
On 10/09/2012 06:33 PM, Bruce Dubbs wrote: > Armin K. wrote: > > > From what I see, your command would attempt to use either sudo or su > > even if ran as root user. Maybe some kind of "am I root?" checking > > should be done there before trying to check for sudo or execute su if > > sudo

Re: [blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-09 Thread Bruce Dubbs
Armin K. wrote: > On 10/08/2012 06:47 PM, Bruce Dubbs wrote: > > Sorry for the delay, I've missed the reply somehow. > >> >> Well what we have now is wrong and what we had before is also wrong. >> The above is right, but may not be elegant. It is, however, somewhat >> educational. >> >> It could

Re: [blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-09 Thread Armin K.
On 10/08/2012 06:47 PM, Bruce Dubbs wrote: Sorry for the delay, I've missed the reply somehow. > > Well what we have now is wrong and what we had before is also wrong. > The above is right, but may not be elegant. It is, however, somewhat > educational. > From what I see, your command would at

Re: [blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-08 Thread Bruce Dubbs
Armin K. wrote: > On 10/08/2012 06:09 PM, Bruce Dubbs wrote: >> kre...@linuxfromscratch.org wrote: >>> Author: krejzi >>> Date: 2012-10-08 00:05:45 -0600 (Mon, 08 Oct 2012) >>> New Revision: 10721 >>> >>> Modified: >>> trunk/BOOK/x/installing/x7app.xml >>> trunk/BOOK/x/installing/x7font

Re: [blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-08 Thread Armin K.
On 10/08/2012 06:09 PM, Bruce Dubbs wrote: > kre...@linuxfromscratch.org wrote: >> Author: krejzi >> Date: 2012-10-08 00:05:45 -0600 (Mon, 08 Oct 2012) >> New Revision: 10721 >> >> Modified: >> trunk/BOOK/x/installing/x7app.xml >> trunk/BOOK/x/installing/x7font.xml >> trunk/BOOK/x/in

Re: [blfs-dev] [blfs-book] r10721 - trunk/BOOK/x/installing

2012-10-08 Thread Bruce Dubbs
kre...@linuxfromscratch.org wrote: > Author: krejzi > Date: 2012-10-08 00:05:45 -0600 (Mon, 08 Oct 2012) > New Revision: 10721 > > Modified: > trunk/BOOK/x/installing/x7app.xml > trunk/BOOK/x/installing/x7font.xml > trunk/BOOK/x/installing/x7lib.xml > trunk/BOOK/x/installing/x7proto