[SCM] debian-live branch, master, updated. 1.0_a47-1-54-gbcd8472

Chris Lamb chris at chris-lamb.co.uk
Fri Jun 20 00:45:17 UTC 2008


The following commit has been merged in the master branch:
commit daec955a09add75ec425bcf48cc40584f940b6b8
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date:   Thu Jun 19 19:49:16 2008 +0100

    Consolidate grep text searching predicates to use "grep -qs"
    
    If this is deemed not portable enough in the future, it should be easy
    enough to find/replace.
    
    Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>

diff --git a/helpers/lh_binary_local-includes b/helpers/lh_binary_local-includes
index 04e429e..57918bd 100755
--- a/helpers/lh_binary_local-includes
+++ b/helpers/lh_binary_local-includes
@@ -42,7 +42,7 @@ Check_lockfile .lock
 # Creating lock file
 Create_lockfile .lock
 
-if ls -A config/binary_local-includes/ | grep . > /dev/null 2>&1
+if ls -A config/binary_local-includes/ | grep -qs .
 then
 	# Copying includes
 	cd config/binary_local-includes
diff --git a/helpers/lh_binary_net b/helpers/lh_binary_net
index 3b5076e..9dae63f 100755
--- a/helpers/lh_binary_net
+++ b/helpers/lh_binary_net
@@ -78,7 +78,7 @@ case "${LH_NET_TARBALL}" in
 		;;
 
 	gzip)
-		if gzip --help | grep -q "\-\-rsyncable"
+		if gzip --help | grep -qs "\-\-rsyncable"
 		then
 			tar cf binary-net.tar "$(basename ${OLDPWD})/${ROOT_DIR}" "$(basename ${OLDPWD})/tftpboot"
 			gzip --rsyncable --best binary-net.tar
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 57304e3..f0338ae 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -280,7 +280,7 @@ Configure_syslinux_templates ()
 	# Syslinux v3.31 in etch does not support include statements
 	if [ "${LH_DISTRIBUTION}" = "etch" ]
 	then
-		while grep -q ^include ${SCREEN_PATH}/syslinux.cfg
+		while grep -qs ^include ${SCREEN_PATH}/syslinux.cfg
 		do
 			INCLUDES=$(grep ^include ${SCREEN_PATH}/syslinux.cfg |awk '{print $2}')
 
diff --git a/helpers/lh_binary_tar b/helpers/lh_binary_tar
index 7560bce..2b3df64 100755
--- a/helpers/lh_binary_tar
+++ b/helpers/lh_binary_tar
@@ -50,7 +50,7 @@ Create_lockfile .lock
 # Remove old binary
 rm -f binary.tar.gz
 
-if gzip --help | grep -q '\-\-rsyncable'
+if gzip --help | grep -qs '\-\-rsyncable'
 then
 	tar cf binary-tar.tar binary
 	gzip --rsyncable --best binary-tar.tar
diff --git a/helpers/lh_chroot_local-includes b/helpers/lh_chroot_local-includes
index 49d1c80..697c33b 100755
--- a/helpers/lh_chroot_local-includes
+++ b/helpers/lh_chroot_local-includes
@@ -42,7 +42,7 @@ Check_lockfile .lock
 # Creating lock file
 Create_lockfile .lock
 
-if ls -A config/chroot_local-includes/ | grep . > /dev/null 2>&1
+if ls -A config/chroot_local-includes/ | grep -qs .
 then
 	# Copying includes
 	cd config/chroot_local-includes
diff --git a/helpers/lh_source_debian-live b/helpers/lh_source_debian-live
index c82ca29..cd252ce 100755
--- a/helpers/lh_source_debian-live
+++ b/helpers/lh_source_debian-live
@@ -60,7 +60,7 @@ cp -a config source/debian-live
 # Create tarball
 cd source
 
-if gzip --help | grep -q '\-\-rsyncable'
+if gzip --help | grep -qs '\-\-rsyncable'
 then
 	tar cf debian-live-config_$(date +%Y%m%d.%s).tar debian-live
 	gzip --rsyncable --best debian-live-config_$(date +%Y%m%d.%s).tar
diff --git a/helpers/lh_source_net b/helpers/lh_source_net
index 76c9f94..bd79792 100755
--- a/helpers/lh_source_net
+++ b/helpers/lh_source_net
@@ -59,7 +59,7 @@ then
 fi
 
 # Create tarball
-if gzip --help | grep -q '\-\-rsyncable'
+if gzip --help | grep -qs '\-\-rsyncable'
 then
 	tar cf source-net.tar source
 	gzip --rsyncable --best source-net.tar
diff --git a/helpers/lh_source_tar b/helpers/lh_source_tar
index df8be3b..c13e9a9 100755
--- a/helpers/lh_source_tar
+++ b/helpers/lh_source_tar
@@ -60,7 +60,7 @@ then
 fi
 
 # Create tarball
-if gzip --help | grep -q '\-\-rsyncable'
+if gzip --help | grep -qs '\-\-rsyncable'
 then
 	tar cf source.tar source
 	gzip --rsyncable --best source.tar

-- 
debian-live



More information about the debian-live-changes mailing list