On Fri, Aug 03, 2012 at 03:28:34AM +1000, Stephen Cottham wrote:
> I'll incorporate Jakubs improvements once I get his latest
> contribution, from his last script looks like he will be adding error
> detection and detection of number of cores to speed up compilation and
> general clean-up etc.. - and anything else he adds (or anyone else
> wants to add) in the mean-time.
Well - detection of number of cores is done. It just count them by
cpu_count=$((`grep processor /proc/cpuinfo | wc -l`+1));
and then pass argument
-j $cpu_count
to 'make'. It has huge performance impact on multicores machines.
My error detection was only adding
foobar || exit 1
anywhere where it is possible. It just stops script after, for example,
apt-get failure, so you can see what went wrong. For the same reason
I advise against using 'clear' between install steps - it makes
scrolling and copy&paste difficult.
My major change was putting 'checkinstall' everywhere where script writes
outsite of /usr/adm. 'checkinstall' makes DEB packages automagiclly and
then installs it through standard Debian packaging system. So - you can
remove it by running 'dpkg --remove foobar'.
Now I merging Stephen's changes with my version of script and I'll post it here
ASAP.
I'm sorry for such a delay, but we have shitload of work here, in university IT
center. Tomorrow I'm going to holidays. I'll be back on 13th august.
> I'll add the SVN folder "scripts" tomorrow as suggested by Sebastian to
> keep this stuff in one location.
How can I get access to this folder to commit patches? I have to
register somewhere or it is for trusted developers only? :D
It would make live easier - because now I have local fork of old version
of script - and I have to merge it with newest changes by Stephen.
--
Jakub Skory, <kuba(at)ukw(dot)edu(dot)pl>
System Operator
IT Center:
_______________________________________________________________________
tel: +48 52 3257 649, +48 52 3257 647
fax: +48 52 3257 646, +48 52 3257 647
working hours: 08a.m. - 04p.m.
mail: di(at)ukw(dot)edu(dot)pl
web: http://di.ukw.edu.pl/
postal address: M. Kopernika 1 (room 8/9), 85-074, Bydgoszcz.
_______________________________________________________________________
Kazimierz Wielki University,
J. K. Chodkiewicza 30,
85-064, Bydgoszcz, Poland.
_______________________________________________________________________
pgpNq9S1yswnH.pgp
Description: PGP signature
www(dot)ukw(dot)edu(dot)pl MID: 1828491 09:50:01 08/03/12
