Revision: 5388 http://ipcop.svn.sourceforge.net/ipcop/?rev=5388&view=rev Author: gespinasse Date: 2011-01-30 11:17:44 +0000 (Sun, 30 Jan 2011)
Log Message: ----------- As we use our build bash there, replace seq with bash>=3.00 range syntax a la {1..7} That will avoid the cost of a subprocess for seq Modified Paths: -------------- ipcop/trunk/lfs/initramfs ipcop/trunk/lfs/usb-key ipcop/trunk/lfs/zlib Modified: ipcop/trunk/lfs/initramfs =================================================================== --- ipcop/trunk/lfs/initramfs 2011-01-29 09:24:50 UTC (rev 5387) +++ ipcop/trunk/lfs/initramfs 2011-01-30 11:17:44 UTC (rev 5388) @@ -486,7 +486,7 @@ # For ppc, we're using an ext2 initrd image dd if=/dev/zero of=/tmp/$(SNAME)-$(VERSION)-root-1.img bs=1024k count=5 && \ mkfs.ext2 -F -m 0 /tmp/$(SNAME)-$(VERSION)-root-1.img && \ - for i in `seq 0 7`; do \ + for i in {1..7}; do \ if (! losetup /dev/loop$${i} >/dev/null 2>&1 ); then \ LOOPDEV="/dev/loop$${i}"; \ break; \ Modified: ipcop/trunk/lfs/usb-key =================================================================== --- ipcop/trunk/lfs/usb-key 2011-01-29 09:24:50 UTC (rev 5387) +++ ipcop/trunk/lfs/usb-key 2011-01-30 11:17:44 UTC (rev 5388) @@ -59,7 +59,7 @@ define COPY_TO_IMG mkdosfs -n IPCOPBOOT -F 16 -I $$IMAGE && \ - for i in `seq 0 7`; do \ + for i in {1..7}; do \ if (! losetup /dev/loop$${i} >/dev/null 2>&1 ); then \ LOOPDEV="/dev/loop$${i}"; \ break; \ @@ -85,7 +85,7 @@ endef define MBR_TO_IMG - for i in `seq 0 7`; do \ + for i in {1..7}; do \ if (! losetup /dev/loop$${i} >/dev/null 2>&1 ); then \ LOOPDEV="/dev/loop$${i}"; \ break; \ @@ -102,7 +102,7 @@ # Create install USB key package(s) as an alternate way to boot during install for i486 # rebuild each time, no (PRE|POST)BUILD - for i in `seq 0 7`; do \ + for i in {1..7}; do \ if [ ! -b /dev/loop$${i} ]; then \ mknod /dev/loop$${i} b 7 $${i}; \ fi; \ @@ -145,7 +145,7 @@ gzip -fn9 $(IMGfdd) $(IMGhdd) $(IMGzip) rm -rf /tmp/* $(IMGfs) - for i in `seq 0 7`; do \ + for i in {1..7}; do \ rm -fr /dev/loop$${i}; \ done Modified: ipcop/trunk/lfs/zlib =================================================================== --- ipcop/trunk/lfs/zlib 2011-01-29 09:24:50 UTC (rev 5387) +++ ipcop/trunk/lfs/zlib 2011-01-30 11:17:44 UTC (rev 5388) @@ -89,8 +89,8 @@ # Ubuntu/Debian use CFLAGS="-O3 -D_REENTRANT -DUNALIGNED_OK" # I didn't see big difference against our CFLAGS testing with - # for i in $(seq 1 500);do cat zlib.h >>foo.bar ;done # create a 38 MB file - # for i in $(seq 1 5);do time ./minigzipsh -9 -c foo.bar | ./minigzipsh -d >/dev/null ;done; rm -f foo.bar + # for i in {1..500};do cat zlib.h >>foo.bar ;done # create a 38 MB file + # for i in {1..5};do time ./minigzipsh -9 -c foo.bar | ./minigzipsh -d >/dev/null ;done; rm -f foo.bar # Add -fPIC -DPIC for libz.a, needed for mklibs hardened cd $(DIR_APP) && CFLAGS="$(CFLAGS) -fPIC -DPIC" ./configure --prefix=/usr cd $(DIR_APP) && make This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn