From 10203ee645bde95c645964e73e2f1c6b071aa371 Mon Sep 17 00:00:00 2001
From: Travis Cross <tc@traviscross.com>
Date: Sun, 6 May 2012 03:24:46 +0000
Subject: [PATCH] ci: remove bashisms and switch to #!/bin/sh

---
 scripts/ci/common.sh               | 2 +-
 scripts/ci/debsrcbuilder.sh        | 2 +-
 scripts/ci/erlang-rpm.sh           | 2 +-
 scripts/ci/extras/erlangbuilder.sh | 4 ++--
 scripts/ci/get_extra_sources.sh    | 4 ++--
 scripts/ci/rpmbuilder.sh           | 4 ++--
 scripts/ci/sounds-en-us-callie.sh  | 2 +-
 scripts/ci/sounds-music.sh         | 2 +-
 scripts/ci/sounds-ru-ru-elena.sh   | 2 +-
 scripts/ci/src_tarball.sh          | 2 +-
 10 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/scripts/ci/common.sh b/scripts/ci/common.sh
index 1d941d2d5a..d0ede5aabf 100755
--- a/scripts/ci/common.sh
+++ b/scripts/ci/common.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 src_repo="$(pwd)"
diff --git a/scripts/ci/debsrcbuilder.sh b/scripts/ci/debsrcbuilder.sh
index 75f7026651..02ab0f363b 100755
--- a/scripts/ci/debsrcbuilder.sh
+++ b/scripts/ci/debsrcbuilder.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 sdir="."
diff --git a/scripts/ci/erlang-rpm.sh b/scripts/ci/erlang-rpm.sh
index 3557b68f42..35ae226627 100755
--- a/scripts/ci/erlang-rpm.sh
+++ b/scripts/ci/erlang-rpm.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 src_repo="$(pwd)"
diff --git a/scripts/ci/extras/erlangbuilder.sh b/scripts/ci/extras/erlangbuilder.sh
index 51a41ac3f4..dd6fdc6803 100755
--- a/scripts/ci/extras/erlangbuilder.sh
+++ b/scripts/ci/extras/erlangbuilder.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 src_repo="$(pwd)"
@@ -13,7 +13,7 @@ if [ -z "$1" ]; then
   exit 1;
 fi
 
-mkdir -p $src_repo/rpmbuild/{SOURCES,BUILD,BUILDROOT,i386,x86_64,SOURCES,SPECS}
+(mkdir -p rpmbuild && cd $_ && mkdir -p SOURCES BUILD BUILDROOT i386 x86_64 SOURCES SPECS)
 cd $src_repo
 
 rpmbuild --define "_topdir %(pwd)/rpmbuild" \
diff --git a/scripts/ci/get_extra_sources.sh b/scripts/ci/get_extra_sources.sh
index add57c7920..c0827c68eb 100755
--- a/scripts/ci/get_extra_sources.sh
+++ b/scripts/ci/get_extra_sources.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 src_repo="$(pwd)"
@@ -8,7 +8,7 @@ if [ ! -d .git ]; then
   exit 1;
 fi
 
-mkdir -p $src_repo/rpmbuild/{SOURCES,BUILD,BUILDROOT,i386,x86_64,SOURCES,SPECS}
+(mkdir -p rpmbuild && cd $_ && mkdir -p SOURCES BUILD BUILDROOT i386 x86_64 SOURCES SPECS)
 
 cd $src_repo/rpmbuild/SOURCES
 
diff --git a/scripts/ci/rpmbuilder.sh b/scripts/ci/rpmbuilder.sh
index d5598234ec..36b8b1d079 100755
--- a/scripts/ci/rpmbuilder.sh
+++ b/scripts/ci/rpmbuilder.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 sdir="."
@@ -12,7 +12,7 @@ dst_name="freeswitch-$cmajor.$cminor.$cmicro"
 dst_parent="/tmp/"
 dst_dir="/tmp/$dst_name"
 
-mkdir -p $src_repo/rpmbuild/{SOURCES,BUILD,BUILDROOT,i386,x86_64,SPECS}
+(mkdir -p rpmbuild && cd $_ && mkdir -p SOURCES BUILD BUILDROOT i386 x86_64 SPECS)
 
 cd $src_repo
 
diff --git a/scripts/ci/sounds-en-us-callie.sh b/scripts/ci/sounds-en-us-callie.sh
index fbcf1ea422..39703028ca 100755
--- a/scripts/ci/sounds-en-us-callie.sh
+++ b/scripts/ci/sounds-en-us-callie.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 sdir="."
diff --git a/scripts/ci/sounds-music.sh b/scripts/ci/sounds-music.sh
index 118d6b717f..70e61eabec 100755
--- a/scripts/ci/sounds-music.sh
+++ b/scripts/ci/sounds-music.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 src_repo="$(pwd)"
diff --git a/scripts/ci/sounds-ru-ru-elena.sh b/scripts/ci/sounds-ru-ru-elena.sh
index 93da3228f7..33a4f9d004 100755
--- a/scripts/ci/sounds-ru-ru-elena.sh
+++ b/scripts/ci/sounds-ru-ru-elena.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 src_repo="$(pwd)"
diff --git a/scripts/ci/src_tarball.sh b/scripts/ci/src_tarball.sh
index a946976148..d847020380 100755
--- a/scripts/ci/src_tarball.sh
+++ b/scripts/ci/src_tarball.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
 
 sdir="."