Skip to content

Commit

Permalink
waf/buildtools: use /bin/sh instead of /bin/bash and put ^ in quotes
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
Björn Jacke committed Dec 2, 2010
1 parent beb0181 commit fca9d05
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions buildtools/compare_config_h3.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions buildtools/compare_config_h4.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion buildtools/compare_generated.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

# compare the generated files from a waf

Expand Down
2 changes: 1 addition & 1 deletion buildtools/compare_install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

prefix1="$1"
prefix2="$2"
Expand Down

0 comments on commit fca9d05

Please sign in to comment.