summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blossom2010-12-07 13:19:06 -0800
committerEric Blossom2010-12-07 13:19:06 -0800
commitc69cf50c8c553377d1ad9d353b207d57f5d3a47d (patch)
treef0932078be6ed05f1fcf3d2d9fefd22afbc3ba3b
parente0f038f1fbeb28b7a4678d0a90b7132836e10a21 (diff)
downloadgnuradio-c69cf50c8c553377d1ad9d353b207d57f5d3a47d.tar.gz
gnuradio-c69cf50c8c553377d1ad9d353b207d57f5d3a47d.tar.bz2
gnuradio-c69cf50c8c553377d1ad9d353b207d57f5d3a47d.zip
Change shell function definitions to use POSIX syntax
-rw-r--r--gr-howto-write-a-block/setup_guile_test_env.in14
-rw-r--r--setup_guile_test_env.in14
2 files changed, 14 insertions, 14 deletions
diff --git a/gr-howto-write-a-block/setup_guile_test_env.in b/gr-howto-write-a-block/setup_guile_test_env.in
index 6a2402064..3437fab44 100644
--- a/gr-howto-write-a-block/setup_guile_test_env.in
+++ b/gr-howto-write-a-block/setup_guile_test_env.in
@@ -26,7 +26,7 @@
# 2nd argument is absolute path to component C++ shared library build directory
# 3nd argument is absolute path to component SWIG build directory
-function add_local_paths(){
+add_local_paths() {
if [ $# -ne 3 ]
then
echo "$0: requires 3 args" 1>&2
@@ -46,7 +46,7 @@ abs_top_srcdir=@abs_top_srcdir@
abs_top_builddir=@abs_top_builddir@
# usage: prepend <path-varname> <dir>
-function prepend(){
+prepend() {
if [ $# -ne 2 ]
then
echo "$0: prepend needs 2 args" 1>&2
@@ -67,7 +67,7 @@ function prepend(){
}
# usage: append <path-varname> <dir>
-function append(){
+append() {
if [ $# -ne 2 ]
then
echo "$0: append needs 2 args" 1>&2
@@ -87,17 +87,17 @@ function append(){
#echo end-of-append: $path=${!path}
}
-function prepend_to_guile_load_path(){
+prepend_to_guile_load_path() {
prepend GUILE_LOAD_PATH "$1"
export GUILE_LOAD_PATH
}
-function append_to_guile_load_path(){
+append_to_guile_load_path() {
append GUILE_LOAD_PATH "$1"
export GUILE_LOAD_PATH
}
-function prepend_to_libpath(){
+prepend_to_libpath() {
prepend LTDL_LIBRARY_PATH "$1"
export LTDL_LIBRARY_PATH
case "@host_os@" in
@@ -112,7 +112,7 @@ function prepend_to_libpath(){
esac
}
-function append_to_libpath(){
+append_to_libpath() {
append LTDL_LIBRARY_PATH "$1"
export LTDL_LIBRARY_PATH
case "@host_os@" in
diff --git a/setup_guile_test_env.in b/setup_guile_test_env.in
index f143685c0..a95d54e74 100644
--- a/setup_guile_test_env.in
+++ b/setup_guile_test_env.in
@@ -26,7 +26,7 @@
# 2nd argument is absolute path to component C++ shared library build directory
# 3nd argument is absolute path to component SWIG build directory
-function add_local_paths(){
+add_local_paths() {
if [ $# -ne 3 ]
then
echo "$0: requires 3 args" 1>&2
@@ -50,7 +50,7 @@ abs_top_srcdir=@abs_top_srcdir@
abs_top_builddir=@abs_top_builddir@
# usage: prepend <path-varname> <dir>
-function prepend(){
+prepend() {
if [ $# -ne 2 ]
then
echo "$0: prepend needs 2 args" 1>&2
@@ -71,7 +71,7 @@ function prepend(){
}
# usage: append <path-varname> <dir>
-function append(){
+append() {
if [ $# -ne 2 ]
then
echo "$0: append needs 2 args" 1>&2
@@ -91,17 +91,17 @@ function append(){
#echo end-of-append: $path=${!path}
}
-function prepend_to_guile_load_path(){
+prepend_to_guile_load_path() {
prepend GUILE_LOAD_PATH "$1"
export GUILE_LOAD_PATH
}
-function append_to_guile_load_path(){
+append_to_guile_load_path() {
append GUILE_LOAD_PATH "$1"
export GUILE_LOAD_PATH
}
-function prepend_to_libpath(){
+prepend_to_libpath() {
prepend LTDL_LIBRARY_PATH "$1"
export LTDL_LIBRARY_PATH
case "@host_os@" in
@@ -116,7 +116,7 @@ function prepend_to_libpath(){
esac
}
-function append_to_libpath(){
+append_to_libpath() {
append LTDL_LIBRARY_PATH "$1"
export LTDL_LIBRARY_PATH
case "@host_os@" in