[vlma-devel] commit: Remove bashisms. (Adrien Grand )

git version control git at videolan.org
Sun Oct 12 22:49:45 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sun Oct 12 22:10:27 2008 +0200| [c2f7249ceaaf41d577ac0946460d86ba49abc78e] | committer: Adrien Grand 

Remove bashisms.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=c2f7249ceaaf41d577ac0946460d86ba49abc78e
---

 vlma-distribution/src/bin/vlma-env.sh |    4 +++-
 vlma-distribution/src/bin/vlmad       |    2 +-
 vlma-distribution/src/bin/vlmaw       |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/vlma-distribution/src/bin/vlma-env.sh b/vlma-distribution/src/bin/vlma-env.sh
index a6c29c0..1a58fd1 100644
--- a/vlma-distribution/src/bin/vlma-env.sh
+++ b/vlma-distribution/src/bin/vlma-env.sh
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 # Find the JAVA executable
 if [ -z "$JAVA_HOME" ]
 then
@@ -16,7 +18,7 @@ then
     exit 1;
 fi
 
-function check_dir() {
+check_dir() {
     dir=$1
     if [ ! -d "$dir" ]
     then
diff --git a/vlma-distribution/src/bin/vlmad b/vlma-distribution/src/bin/vlmad
index 13caa70..698e14c 100644
--- a/vlma-distribution/src/bin/vlmad
+++ b/vlma-distribution/src/bin/vlmad
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-function usage() {
+usage() {
     echo "Usage: vlmad [start|stop|reload|help]"
 }
 
diff --git a/vlma-distribution/src/bin/vlmaw b/vlma-distribution/src/bin/vlmaw
index d65ff87..5d9fbb3 100644
--- a/vlma-distribution/src/bin/vlmaw
+++ b/vlma-distribution/src/bin/vlmaw
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-function usage() {
+usage() {
     echo "Usage: vlmaw [start|stop|help]"
 }
 



More information about the vlma-devel mailing list