[leaf-commits] src/bering-uclibc4/source/initrd buildtool.mk, 1.13, 1.14

Andrew <[email protected]>
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/source/initrd
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30350

Modified Files:
	buildtool.mk 
Log Message:
add '-e' key only if shell hasn't unescaping by default


Index: buildtool.mk
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/initrd/buildtool.mk,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** buildtool.mk	19 Oct 2010 10:24:39 -0000	1.13
--- buildtool.mk	29 Oct 2010 19:20:52 -0000	1.14
***************
*** 4,7 ****
--- 4,8 ----
  INITRD_DIR=.
  INITRD_TARGET_DIR:=$(BT_BUILD_DIR)/config
+ ESCKEY=$(shell echo "a\nb"|awk '/\\n/ {print "-e"}')
  
  $(INITRD_DIR)/.source:
***************
*** 21,27 ****
  		    sh $(BT_TOOLS_DIR)/getdep.sh "ata_.*" ahci ehci-hcd uhci-hcd \
  		    ohci-hcd usb-storage sd_mod sr_mod isofs vfat floppy >mod
! 	echo -e "isofs\nvfat">$(INITRD_TARGET_DIR)/boot/etc/modules
  	-rm -f files
! 	(for i in `cat mod`; do echo -e "<File>\n\tSource\t= lib/modules/__KVER__/$$i\n\t\
  	Filename\t= lib/modules/$$(echo $$i|sed 's/[a-z]*\/[a-z_/-]*\///g')\n\t\
  	Type\t= binary\n\tType\t= module\n\tPermissions\t= 644\n</File>">>files; done)
--- 22,28 ----
  		    sh $(BT_TOOLS_DIR)/getdep.sh "ata_.*" ahci ehci-hcd uhci-hcd \
  		    ohci-hcd usb-storage sd_mod sr_mod isofs vfat floppy >mod
! 	echo $(ESCKEY) "isofs\nvfat">$(INITRD_TARGET_DIR)/boot/etc/modules
  	-rm -f files
! 	(for i in `cat mod`; do echo $(ESCKEY) "<File>\n\tSource\t= lib/modules/__KVER__/$$i\n\t\
  	Filename\t= lib/modules/$$(echo $$i|sed 's/[a-z]*\/[a-z_/-]*\///g')\n\t\
  	Type\t= binary\n\tType\t= module\n\tPermissions\t= 644\n</File>">>files; done)


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.