waf/buildtools: use /bin/sh instead of /bin/bash and put ^ in quotes
authorBjörn Jacke <bj@sernet.de>
Thu, 2 Dec 2010 08:40:21 +0000 (09:40 +0100)
committerBjoern Jacke <bj@sernet.de>
Thu, 2 Dec 2010 09:36:06 +0000 (10:36 +0100)
- some Unix shells actually don't like grep ^foo, use grep "^foo" instead.

- bash is not installed on every system, please avoid #!/bin/bash and
  use #!/bin/sh instead

buildtools/compare_config_h3.sh
buildtools/compare_config_h4.sh
buildtools/compare_generated.sh
buildtools/compare_install.sh

index 742aa1b5b8933003d6f72314961854f94927ab09..0f640a9540a1fe3081c6e98eaebbcaeb49ab2dfb 100755 (executable)
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!/bin/sh
 
 # compare the generated config.h from a waf build with existing samba
 # build
 
-grep ^.define bin/default/source3/include/config.h | sort > waf-config.h
-grep ^.define $HOME/samba_old/source3/include/config.h | sort > old-config.h
+grep "^.define" bin/default/source3/include/config.h | sort > waf-config.h
+grep "^.define" $HOME/samba_old/source3/include/config.h | sort > old-config.h
 
 comm -23 old-config.h waf-config.h
 
index 6daa743ed21ac4b24236d12a0eacd8f13e1335f5..b78b36fdd0fa4bae41cfc675c4677ef5f076b22c 100755 (executable)
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!/bin/sh
 
 # compare the generated config.h from a waf build with existing samba
 # build
 
-grep ^.define bin/default/source4/include/config.h | sort > waf-config.h
-grep ^.define $HOME/samba_old/source4/include/config.h | sort > old-config.h
+grep "^.define" bin/default/source4/include/config.h | sort > waf-config.h
+grep "^.define" $HOME/samba_old/source4/include/config.h | sort > old-config.h
 
 comm -23 old-config.h waf-config.h
 
index ae20fef37de15a68dc77f7635b9beff054b16e18..ebef8a979bde10540578de3b6855552c756089ad 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 # compare the generated files from a waf
 
index 5ddbffb66564aec17a123d487e2f42af372a4bb0..b964117550b64318e4c68d2ada03dafd742a9d04 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 prefix1="$1"
 prefix2="$2"