SPECS: bootchart.spec - use quotes in shell for the sake of clarity

glen glen at pld-linux.org
Fri Dec 8 13:05:13 CET 2006


Author: glen                         Date: Fri Dec  8 12:05:13 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use quotes in shell for the sake of clarity

---- Files affected:
SPECS:
   bootchart.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/bootchart.spec
diff -u SPECS/bootchart.spec:1.8 SPECS/bootchart.spec:1.9
--- SPECS/bootchart.spec:1.8	Fri Dec  8 13:04:13 2006
+++ SPECS/bootchart.spec	Fri Dec  8 13:05:07 2006
@@ -22,7 +22,7 @@
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define boottitle "Bootchart logging"
+%define		boottitle Bootchart logging
 
 %description
 A tool for performance analysis and visualization of the GNU/Linux
@@ -119,8 +119,8 @@
 	init=$(echo "$info" |sed -n '/^args=.*init=/{s/^args=.*init=//;s/"$//;p;q;}')
 	[ -n "$initrd" ] && initrd="--initrd=$initrd"
 	[ -n "$init" ] && init="bootchart_init=$init"
-	/sbin/grubby --remove-kernel TITLE=%{boottitle}
-	/sbin/grubby --copy-default --add-kernel=$kernel $initrd --args="init=/sbin/bootchartd $init" --title=%{boottitle} || :
+	/sbin/grubby --remove-kernel TITLE='%{boottitle}'
+	/sbin/grubby --copy-default --add-kernel=$kernel $initrd --args="init=/sbin/bootchartd $init" --title='%{boottitle}' || :
 else
 	%banner -e %{name}-logger <<-EOF
 You should adjust your bootloader to boot with
@@ -132,7 +132,7 @@
 if [ "$1" = 0 ]; then
 	# Remove the grub/lilo entry
 	if [ -x /sbin/grubby ]; then
-		/sbin/grubby --remove-kernel TITLE=%{boottitle} || :
+		/sbin/grubby --remove-kernel TITLE='%{boottitle}' || :
 	fi
 fi
 
@@ -159,6 +159,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2006/12/08 12:05:07  glen
+- use quotes in shell for the sake of clarity
+
 Revision 1.8  2006/12/08 12:04:13  glen
 - use %banner when no grubby present
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/bootchart.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list