lkml.org 
[lkml]   [2006]   [May]   [20]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateFri, 19 May 2006 21:35:27 -0700
From"H. Peter Anvin" <>
Subject[Kbuild] Proper syntax for initramfs dependencies
This patch adjusts the generation of initramfs dependencies, so that the 
syntax stays correct when there are multiple files.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh
index b1ebd64..2ac9490 100644
--- a/scripts/gen_initramfs_list.sh
+++ b/scripts/gen_initramfs_list.sh
@@ -178,7 +178,7 @@ input_file() {
 			print_mtime "$1" >> ${output}
 			cat "$1"         >> ${output}
 		else
-			grep ^file "$1" | cut -d ' ' -f 3
+			grep ^file "$1" | cut -d ' ' -f 3 | sed -e 's/$/ \\/'
 		fi
 	elif [ -d "$1" ]; then
 		dir_filelist "$1"
\
 
 \ /
  Last update: 2006-05-20 04:38    [from the cache]
©2003-2008