I don't have a rough estimate, I have real values: fleyta at meridian:~/ksh93/on_build2/onnv-gate.hg$ for z in arch clear mach ; do ls -l $ROOT/bin/$z /bin/$z ; done -r-xr-xr-x 1 root bin 1595 Mar 4 2009 /bin/arch -r-xr-xr-x 1 fleyta fleyta 490 Nov 23 19:21 /home/fleyta/ksh93/on_build2/onnv-gate.hg/proto/root_sparc/bin/arch -r-xr-xr-x 1 root bin 1166 Mar 4 2009 /bin/clear -r-xr-xr-x 1 fleyta fleyta 71 Nov 23 19:24 /home/fleyta/ksh93/on_build2/onnv-gate.hg/proto/root_sparc/bin/clear -r-xr-xr-x 1 root bin 1347 Mar 4 2009 /bin/mach -r-xr-xr-x 1 fleyta fleyta 31 Nov 24 11:21 /home/fleyta/ksh93/on_build2/onnv-gate.hg/proto/root_sparc/bin/mach
The files in /bin are the current scripts, the files in /home/fleyta/ksh93/on_build2/onnv-gate.hg/proto/root_sparc/bin are the scripts after treatment. The shrink ratio is variable, depending on the individual script. Yes, I use shcomp. 2009/11/24 Jan Damborsky <Jan.Damborsky at sun.com>: > Hi ?????, > > ????? ???????????? wrote: >> >> Problem: miniroot is big and there is room for size reduction by simple >> means > > Please also see following bugs which will affect size of > microroot (some of them apply to Sparc microroot only): > > http://defect.opensolaris.org/bz/show_bug.cgi?id=6361 > http://defect.opensolaris.org/bz/show_bug.cgi?id=8205 > http://defect.opensolaris.org/bz/show_bug.cgi?id=10534 > http://defect.opensolaris.org/bz/show_bug.cgi?id=11683 > >> Solution: Shrink shell scripts > > If my understanding is correct, those shell scripts > would be compressed using shcomp(1) as it is > indicated in bug 6904124 ? > >> Scope: All /bin/sh, /bin/ksh shell scripts in miniroot > > Out of curiosity, do you happen to have rough estimate how > much space might be saved ? > > > Jan > > -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ olga.kryzhanovska at gmail.com \-`\-'----. `'-..-| / Solaris/BSD//C/C++ programmer \ |-..-'` /\/\ /\/\ `--` `--`
