summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2012-01-24 14:30:34 +0000
committerPedro Giffuni <pfg@apache.org>2012-01-24 14:30:34 +0000
commita345457686b7617dcdee9d28b2a579801e90034a (patch)
treeab2f742ce9cb74240a14f2c650ac0693491a1984 /toolkit
parentf2a7b1334f97ab8bface5ede756bce51cf2426da (diff)
Avoid some uses of non portable #!/bin/bash in shell scripts.
bash is common in GNU/linux but is, in general, not available by default on other systems or likely to be in a different place. When possible /bin/sh should be used but if bash extensions are required "#!/bin/env bash" is considered more portable.
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/src2xml/dryrunall.sh2
-rw-r--r--toolkit/src2xml/sc.sh2
-rw-r--r--toolkit/src2xml/sd.sh2
-rw-r--r--toolkit/src2xml/sw.sh2
4 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/src2xml/dryrunall.sh b/toolkit/src2xml/dryrunall.sh
index a2bd803cc7fb..8b3059d03a09 100644
--- a/toolkit/src2xml/dryrunall.sh
+++ b/toolkit/src2xml/dryrunall.sh
@@ -1,2 +1,2 @@
-#! /bin/bash
+#!/bin/sh
source/src2xml.py --dry-run --includes-from=include.lst $(cat src.lst) "$@"
diff --git a/toolkit/src2xml/sc.sh b/toolkit/src2xml/sc.sh
index 1bfb213ccf12..9d29041ba252 100644
--- a/toolkit/src2xml/sc.sh
+++ b/toolkit/src2xml/sc.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
source/src2xml.py --include-path=$(tr '\n' ':' < include-sc.lst) --dry-run $(cat src-sc.lst) "$@"
diff --git a/toolkit/src2xml/sd.sh b/toolkit/src2xml/sd.sh
index 78b47201fc00..12aaccb68079 100644
--- a/toolkit/src2xml/sd.sh
+++ b/toolkit/src2xml/sd.sh
@@ -1,3 +1,3 @@
-#!/bin/bash
+#!/bin/sh
source/src2xml.py --include-path=$(tr '\n' ':' < include-sd.lst) --dry-run $(cat src-sd.lst) "$@"
diff --git a/toolkit/src2xml/sw.sh b/toolkit/src2xml/sw.sh
index 22f16d4b6c57..b0b870702877 100644
--- a/toolkit/src2xml/sw.sh
+++ b/toolkit/src2xml/sw.sh
@@ -1,3 +1,3 @@
-#! /bin/bash
+#!/bin/sh
source/src2xml.py --include-path=$(tr '\n' ':' < include-sw.lst) --dry-run $(cat src-sw.lst) "$@"